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

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

    1: using Ia.Cl.Models;
    2: using Ia.Wa.Models;
    3: using Microsoft.AspNetCore.Identity;
    4: using Microsoft.AspNetCore.Mvc;
    5: using Microsoft.Extensions.Caching.Memory;
    6: using Microsoft.Extensions.Primitives;
    7: using System.Diagnostics;
    8:  
    9: namespace Ia.Wa.Controllers
   10: {
   11:     ////////////////////////////////////////////////////////////////////////////
   12:  
   13:     /// <summary publish="true">
   14:     ///
   15:     /// </summary>
   16:     /// 
   17:     /// <remarks> 
   18:     /// Copyright © 2006-2025 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   19:     ///
   20:     /// 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
   21:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   22:     ///
   23:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   24:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   25:     /// 
   26:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   27:     /// 
   28:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   29:     /// </remarks> 
   30:     public class HomeController : Controller
   31:     {
   32:         /*
   33:         private readonly RoleManager<IdentityRole> roleManager;
   34: 
   35:         public HomeController(RoleManager<IdentityRole> _roleManager)
   36:         {
   37:             roleManager = _roleManager;
   38:         }
   39:         */
   40:  
   41:         [Route("/")]
   42:         public IActionResult Index()
   43:         {
   44:  
   45:  
   46:  
   47:  
   48:  
   49:  
   50:             return View();
   51:         }
   52:  
   53:         [Route("/price")]
   54:         public IActionResult Price()
   55:         {
   56:             return View();
   57:         }
   58:  
   59:         [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
   60:         public IActionResult Error()
   61:         {
   62:             return View(new Ia.Wa.Models.ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
   63:         }
   64:     }
   65: }