private async Task Create(CreateOrEditAnalisisDto input) { var analisis = ObjectMapper.Map <Analisis>(input); await _analisisRepository.InsertAsync(analisis); }
public async Task CreateOrEdit(CreateOrEditAnalisisDto input) { if (input.Id == null) { await Create(input); } else { await Update(input); } }
private async Task Update(CreateOrEditAnalisisDto input) { var analisis = await _analisisRepository.FirstOrDefaultAsync((long)input.Id); ObjectMapper.Map(input, analisis); }