Exemple #1
0
        protected virtual async Task Create(CreateOrEditSYS_PREFIXDto input)
        {
            var syS_PREFIX = ObjectMapper.Map <SYS_PREFIX>(input);



            await _syS_PREFIXRepository.InsertAsync(syS_PREFIX);
        }
Exemple #2
0
 public async Task CreateOrEdit(CreateOrEditSYS_PREFIXDto input)
 {
     if (input.Id == null)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
Exemple #3
0
        protected virtual async Task Update(CreateOrEditSYS_PREFIXDto input)
        {
            var syS_PREFIX = await _syS_PREFIXRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, syS_PREFIX);
        }