)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
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:     /// </remarks> 
   15:     [ApiController]
   16:     //[Authorize]
   17:     public class MaintenanceController : ControllerBase
   18:     {
   19:         ////////////////////////////////////////////////////////////////////////////
   20:  
   21:         /// <summary>
   22:         /// Find information about input
   23:         /// </summary>
   24:         [HttpGet]
   25:         [Route("api/v1/maintenance/find/{input}")]
   26:         public Ia.Ftn.Cl.Models.Ui.Maintenance.Find Find(string input)
   27:         {
   28:             Ia.Cl.Models.Result result;
   29:             //Ia.Ftn.Cl.Models.Business.Administration.StaffContact staffContact;
   30:             Ia.Ftn.Cl.Models.Ui.Maintenance.Find find;
   31:             List<Ia.Ftn.Cl.Models.Ui.Service2> serviceList;
   32:  
   33:             //result = new Ia.Cl.Model.Result();
   34:  
   35:             find = new Ia.Ftn.Cl.Models.Ui.Maintenance.Find();
   36:             serviceList = new List<Ia.Ftn.Cl.Models.Ui.Service2>();
   37:  
   38:             //if (!string.IsNullOrEmpty(input)) input = Server.HtmlDecode(input);
   39:             //else input = null;
   40:  
   41:             Ia.Ftn.Cl.Models.Ui.Maintenance.Find.SearchForApi(null, input, out serviceList, out result);
   42:  
   43:             if (serviceList != null)
   44:             {
   45:                 find.ServiceList = serviceList;
   46:             }
   47:             else
   48:             {
   49:  
   50:             }
   51:  
   52:             find.Result = result;
   53:  
   54:             return find;
   55:         }
   56:  
   57:         ////////////////////////////////////////////////////////////////////////////
   58:         ////////////////////////////////////////////////////////////////////////////
   59:     }
   60: }