Exemplo n.º 1
0
 public async Task CreateOrEdit(CreateOrEditPozOrderDemoDto input)
 {
     if (input.Id == null)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
Exemplo n.º 2
0
        protected virtual async Task Update(CreateOrEditPozOrderDemoDto input)
        {
            var pozOrderDemo = await _pozOrderDemoRepository.FirstOrDefaultAsync((long)input.Id);

            ObjectMapper.Map(input, pozOrderDemo);
        }
Exemplo n.º 3
0
        protected virtual async Task Create(CreateOrEditPozOrderDemoDto input)
        {
            var pozOrderDemo = ObjectMapper.Map <PozOrderDemo>(input);

            await _pozOrderDemoRepository.InsertAsync(pozOrderDemo);
        }