public async Task <IActionResult> AddUserInList(int groupId, int userId) { Result <int> result = await _groupGateaway.AddUserGroup(groupId, userId); return(this.CreateResult(result, o => { o.RouteName = "GetUserList"; o.RouteValues = id => groupId; })); }
public async Task <Result <int> > AddUsersGroup(int groupId, int userId) { return(await _groupGateway.AddUserGroup(groupId, userId)); }