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

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

    1: using Microsoft.AspNetCore.Authorization;
    2: using Microsoft.AspNetCore.Mvc;
    3: using System.Diagnostics;
    4:  
    5: namespace Ia.Ftn.Wa.Controllers
    6: {
    7:     ////////////////////////////////////////////////////////////////////////////
    8:  
    9:     /// <summary publish="true">
   10:     ///
   11:     /// </summary>
   12:     /// 
   13:     /// <remarks> 
   14:     /// Copyright � 2006-2025 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   15:     ///
   16:     /// 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
   17:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   18:     ///
   19:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   20:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   21:     /// 
   22:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   23:     /// 
   24:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   25:     /// </remarks> 
   26:     [Authorize]
   27:     public class LegalController : Controller
   28:     {
   29:         /////////////////////////////////////////////////////////////////////////////////
   30:  
   31:         /// <summary>
   32:         ///
   33:         /// </summary>
   34:         [HttpGet]
   35:         public IActionResult Index()
   36:         {
   37:             return View();
   38:         }
   39:  
   40:         /////////////////////////////////////////////////////////////////////////////////
   41:  
   42:         /// <summary>
   43:         ///
   44:         /// </summary>
   45:         [HttpGet]
   46:         [Route("/legal/anti-spam")]
   47:         public IActionResult AntiSpam()
   48:         {
   49:             return View();
   50:         }
   51:  
   52:         /////////////////////////////////////////////////////////////////////////////////
   53:  
   54:         /// <summary>
   55:         ///
   56:         /// </summary>
   57:         [HttpGet]
   58:         public IActionResult Copyright()
   59:         {
   60:             return View();
   61:         }
   62:  
   63:         /////////////////////////////////////////////////////////////////////////////////
   64:  
   65:         /// <summary>
   66:         ///
   67:         /// </summary>
   68:         [HttpGet]
   69:         public IActionResult Disclaimer()
   70:         {
   71:             return View();
   72:         }
   73:  
   74:         /////////////////////////////////////////////////////////////////////////////////
   75:  
   76:         /// <summary>
   77:         ///
   78:         /// </summary>
   79:         [HttpGet]
   80:         public IActionResult Privacy()
   81:         {
   82:             return View();
   83:         }
   84:  
   85:         /////////////////////////////////////////////////////////////////////////////////
   86:  
   87:         /// <summary>
   88:         ///
   89:         /// </summary>
   90:         [HttpGet]
   91:         [Route("/legal/terms-of-use")]
   92:         public IActionResult TermsOfUse()
   93:         {
   94:             return View();
   95:         }
   96:  
   97:         /////////////////////////////////////////////////////////////////////////////////
   98:  
   99:         /// <summary>
  100:         ///
  101:         /// </summary>
  102:         [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
  103:         public IActionResult Error()
  104:         {
  105:             return View(new Ia.Ftn.Wa.Models.ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
  106:         }
  107:  
  108:         /////////////////////////////////////////////////////////////////////////////////
  109:         /////////////////////////////////////////////////////////////////////////////////
  110:     }
  111:  
  112:     /////////////////////////////////////////////////////////////////////////////////
  113:     /////////////////////////////////////////////////////////////////////////////////
  114: }