public JsonResult RegisterInfoDelete(string UserId) { var entity = aspNetUserService.GetByUserId(Convert.ToInt32(UserId)); string Result = "OK"; if (ModelState.IsValid) { entity.IsRemoved = true; aspNetUserService.Update(entity); } return(Json(Result, JsonRequestBehavior.AllowGet)); }
public JsonResult GetAccessReportList(int userid, string projectShortName) { var roleid = aspNetUserService.GetByUserId(userid).RoleId; var report = reportAccessService.GetAll().Where(x => x.UserId == userid && x.IsActive).ToList(); var module = spService.GetDataWithParameter(new { USER_ROLE_ID = roleid, Project_Short_Name = projectShortName }, "USP_GET_ALL_Report_Module").Tables[0].AsEnumerable() .Select(x => new AspNetSecurityModule() { AspNetSecurityModuleId = x.Field <int>(0), LinkText = x.Field <string>(1) }) .ToList(); return(Json(new { Report = report, Module = module }, JsonRequestBehavior.AllowGet)); }