protected virtual async Task Create(CreateOrEditSYS_PREFIXDto input) { var syS_PREFIX = ObjectMapper.Map <SYS_PREFIX>(input); await _syS_PREFIXRepository.InsertAsync(syS_PREFIX); }
public async Task CreateOrEdit(CreateOrEditSYS_PREFIXDto input) { if (input.Id == null) { await Create(input); } else { await Update(input); } }
protected virtual async Task Update(CreateOrEditSYS_PREFIXDto input) { var syS_PREFIX = await _syS_PREFIXRepository.FirstOrDefaultAsync((int)input.Id); ObjectMapper.Map(input, syS_PREFIX); }