Beispiel #1
0
        public ActionResult Manage()
        {
            tblUser user = Session[WebUtil.CURRENT_USER] as tblUser;

            if (!(user != null))
            {
                return(RedirectToAction("RedirectToLogin", "user"));
            }
            List <VMAccountSubType> AccountSubType = new AccountSubTypeHandler().GetAccountSubTypes((long)user.CompanyId).ToVMVMAccountSubTypeList();

            return(PartialView("~/Views/AccountSubType/_Manage.cshtml", AccountSubType));
        }
Beispiel #2
0
 public ActionResult UpdateAccountSubType(long Id)
 {
     try
     {
         tblUser user = Session[WebUtil.CURRENT_USER] as tblUser;
         if (!(user != null))
         {
             return(RedirectToAction("RedirectToLogin", "user"));
         }
         VMAccountSubType model = new AccountSubTypeHandler().GetAccountSubTypeById(Id, (long)user.CompanyId).ToVMAccountSubType();
         return(PartialView("~/Views/AccountSubType/_UpdateAccountSubType.cshtml", model));
     }
     catch (Exception ex)
     {
         return(JavaScript("showMessage('error', 'Something went wrong','bottom-right','AccountSubType', 'Manage')"));
     }
 }