Example #1
0
        public ActionResult _AssignLocationAndRoles(string id, string name)
        {
            try
            {
                long userId;

                PermissionDetailsModel objPermissionDetails = new PermissionDetailsModel();
                if (!string.IsNullOrEmpty(id))
                {
                    id = Cryptography.GetDecryptedData(id, true);
                }
                userId = Convert.ToInt64(id);
                objPermissionDetails.UserId   = userId;
                objPermissionDetails.FullName = name;
                objPermissionDetails.UserType = _ICommonMethod.GetUserByID(userId).UserType;
                ViewBag.LocationList          = _IGlobalAdmin.GetAllLocationNew();
                return(PartialView("_AssignLocationAndRoles", objPermissionDetails));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }