public ActionResult AddUserToGroup(DataSourceRequest command, UserGroupListModel model)
        {
            HttpSessionStateBase session = HttpContext.Session;

            if (_userGroupService.AddUserToGroup(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 AddUserToGroup(long userId, long usrGroupId)
 {
     return(userGroupService.AddUserToGroup(userId, usrGroupId));
 }