Пример #1
0
        protected virtual async Task Create(CreateOrEditDangKyKCBDto input)
        {
            var dangKyKCB = ObjectMapper.Map <DangKyKCB>(input);



            await _dangKyKCBRepository.InsertAsync(dangKyKCB);
        }
Пример #2
0
 public async Task CreateOrEdit(CreateOrEditDangKyKCBDto input)
 {
     if (input.Id == null)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
Пример #3
0
        protected virtual async Task Update(CreateOrEditDangKyKCBDto input)
        {
            var dangKyKCB = await _dangKyKCBRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, dangKyKCB);
        }