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

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

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

    1: using Microsoft.AspNetCore.Mvc;
    2:  
    3: namespace Ia.Ftn.Api.Wa.Controllers
    4: {
    5:     ////////////////////////////////////////////////////////////////////////////
    6:  
    7:     /// <summary publish="true">
    8:     /// Service API Controller class of Fixed Telecommunications Network (FTN) model.
    9:     /// </summary>
   10:     /// 
   11:     /// <remarks> 
   12:     /// Copyright © 2015-2024 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   13:     /// </remarks> 
   14:     [ApiController]
   15:     // [Authorize]
   16:     public class ServiceController : ControllerBase
   17:     {
   18:         private static readonly object objectLock = new object();
   19:  
   20:         ////////////////////////////////////////////////////////////////////////////
   21:  
   22:         /// <summary>
   23:         /// Service: Public information about service configuration of the Fixed Telecommunications Network
   24:         /// </summary>
   25:         public ServiceController() { }
   26:  
   27:         ////////////////////////////////////////////////////////////////////////////
   28:  
   29:         /// <summary>
   30:         /// List of Kuwait FTN areas
   31:         /// </summary>
   32:         [HttpGet]
   33:         [Route("api/v1/service/kuwait-ofn-areas")]
   34:         public List<Ia.Ftn.Cl.Models.Business.Service.KuwaitFtnArea> KuwaitAreaList()
   35:         {
   36:             var list = Ia.Ftn.Cl.Models.Data.Service.KuwaitFtnAreaList;
   37:  
   38:             return list;
   39:         }
   40:  
   41:         ////////////////////////////////////////////////////////////////////////////
   42:  
   43:         /// <summary>
   44:         /// List of Kuwait areas
   45:         /// </summary>
   46:         [HttpGet]
   47:         [Route("api/v1/service/kuwait-areas")]
   48:         public List<Ia.Cl.Models.Kuwait> KuwaitList()
   49:         {
   50:             var list = Ia.Cl.Models.Kuwait.KuwaitAreaList;
   51:  
   52:             return list;
   53:         }
   54:  
   55:         ////////////////////////////////////////////////////////////////////////////
   56:  
   57:         /// <summary>
   58:         /// List of the Fixed Telecommunications Network (FTN) allowed to be provisioned domain list 
   59:         /// </summary>
   60:         [HttpGet]
   61:         [Route("api/v1/service/allowed-to-be-provisioned-domains")]
   62:         public List<int> DomainList()
   63:         {
   64:             return Ia.Ftn.Cl.Models.Business.Service.AllowedToBeProvisionedDomainList;
   65:         }
   66:  
   67:         ////////////////////////////////////////////////////////////////////////////
   68:         ////////////////////////////////////////////////////////////////////////////
   69:     }
   70: }