public async Task AddUserToGroupAsync(string userId, string groupId) { await Task.Factory.StartNew(() => { GroupRepository.AddUserToGroup(userId, groupId); return; }); }
public static void AddUserToGroup(int groupId, int userId) { GroupRepository.AddUserToGroup(groupId, userId); }