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

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

Maintenance API Controller class of Optical Fiber Network (OFN) model.

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