public ActionResult RemoveUserFromGroup(DataSourceRequest command, UserGroupListModel model) { HttpSessionStateBase session = HttpContext.Session; if (_userGroupService.RemoveUserFromGroup(model.User_ID, model.Group_ID, Convert.ToInt32(session["UserID"]))) { var gridModel = new DataSourceResult { ExtraData = new UserGroupListModel { Message = Message.OperationSuccessful, MessageColor = "green", }, Total = 1 }; return(Json(gridModel)); } else { var gridModel = new DataSourceResult { ExtraData = new UserGroupListModel { Message = Message.OperationNotAllowed, MessageColor = "red", }, Total = 1 }; return(Json(gridModel)); } }
public OperationResult RemoveUserFromGroup(long userId, long usrGroupId) { return(userGroupService.RemoveUserFromGroup(userId, usrGroupId)); }