private async Task <Entities.Group> Get(IGroupIdentity group) { if (group == null) { throw new ArgumentNullException(nameof(group)); } return(await this.Context.Group.FirstOrDefaultAsync(x => x.Id == group.Id)); }
public Task <Group> GetAsync(IGroupIdentity group) { return(this.GroupDataAccess.GetAsync(group)); }
public async Task <Group> GetAsync(IGroupIdentity group) { var result = await this.Get(group); return(this.Mapper.Map <Group>(result)); }