public ActionResult DeleteTempUserRole(DateTime ExpiryDate, string UserId) { if (!string.IsNullOrEmpty(UserId)) { try { _userRolesService.DeleteTempUserRoles(ExpiryDate, UserId); } catch (Exception ex) { return(Json(new { success = false })); } return(Json(new { success = true })); } else { return(Json(new { success = false })); } }