public async Task <TestApiDto> CreateAsync([FromBody] TestApiDto input) { var entity = ObjectMapper.Map <Test>(input); await Repository.InsertOrUpdateAsync(entity); await CurrentUnitOfWork.SaveChangesAsync(); return(ObjectMapper.Map <TestApiDto>(entity)); }
public async Task <TestApiDto> GetAsync([FromQuery] TestApiDto input) { var entity = await Repository.GetAsync(input.Id); return(ObjectMapper.Map <TestApiDto>(entity)); }