public int AddUserToGroup(string userId) { var group = new ApplicationUserGroup() { GroupId = _appGroupRepository.GetSingleByCondition(s => s.Name == "User").ID, UserId = userId }; _appUserGroupRepository.Add(group); return(group.GroupId); }
public int AddUserToGroup(string userId) { var group = new ApplicationUserGroup() { GroupId = _appGroupRepository.GetSingleByCondition(s => s.Name == "User").ID, UserId = userId }; _appUserGroupRepository.Add(group); return(group.GroupId); }