private async Task <IssueEntity> Get(IIssueIdentity issue) { if (issue == null) { throw new ArgumentNullException(nameof(Issue)); } return(await Context.Issue.FirstOrDefaultAsync(x => x.Id == issue.Id)); }
public Task <Issue> GetAsync(IIssueIdentity issue) { return(IssueDataAccess.GetAsync(issue)); }
public async Task <Issue> GetAsync(IIssueIdentity issue) { var result = await Get(issue); return(Mapper.Map <Issue>(result)); }