)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » MaintenanceController (Ia.Ftn.Api.Wa.Controllers)

Public general use code classes and xml files that we've compiled and used over the years:

Maintenance API Controller class of Fixed Telecommunications Network (FTN) model.

    1: using Microsoft.AspNetCore.Authorization;
    2: using Microsoft.AspNetCore.Mvc;
    3:  
    4: namespace Ia.Ftn.Api.Wa.Controllers
    5: {
    6:     ////////////////////////////////////////////////////////////////////////////
    7:  
    8:     /// <summary publish="true">
    9:     /// Maintenance API Controller class of Fixed Telecommunications Network (FTN) model.
   10:     /// </summary>
   11:     /// 
   12:     /// <remarks> 
   13:     /// Copyright © 2006-2024 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   14:     ///
   15:     /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
   16:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   17:     ///
   18:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   19:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   20:     /// 
   21:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   22:     /// 
   23:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   24:     /// </remarks> 
   25:     [ApiController]
   26:     //[Authorize]
   27:     public class MaintenanceController : ControllerBase
   28:     {
   29:         ////////////////////////////////////////////////////////////////////////////
   30:  
   31:         /// <summary>
   32:         /// Find information about input
   33:         /// </summary>
   34:         [HttpGet]
   35:         [Route("api/v1/maintenance/find/{input}")]
   36:         public Ia.Ftn.Cl.Models.Ui.Maintenance.Find Find(string input)
   37:         {
   38:             Ia.Cl.Models.Result result;
   39:             //Ia.Ftn.Cl.Models.Business.Administration.StaffContact staffContact;
   40:             Ia.Ftn.Cl.Models.Ui.Maintenance.Find find;
   41:             List<Ia.Ftn.Cl.Models.Ui.Service2> serviceList;
   42:  
   43:             //result = new Ia.Cl.Model.Result();
   44:  
   45:             find = new Ia.Ftn.Cl.Models.Ui.Maintenance.Find();
   46:             serviceList = new List<Ia.Ftn.Cl.Models.Ui.Service2>();
   47:  
   48:             //if (!string.IsNullOrEmpty(input)) input = Server.HtmlDecode(input);
   49:             //else input = null;
   50:  
   51:             Ia.Ftn.Cl.Models.Ui.Maintenance.Find.SearchForApi(null, input, out serviceList, out result);
   52:  
   53:             if (serviceList != null)
   54:             {
   55:                 find.ServiceList = serviceList;
   56:             }
   57:             else
   58:             {
   59:  
   60:             }
   61:  
   62:             find.Result = result;
   63:  
   64:             return find;
   65:         }
   66:  
   67:         ////////////////////////////////////////////////////////////////////////////
   68:         ////////////////////////////////////////////////////////////////////////////
   69:     }
   70: }