Exemplo n.º 1
0
        public async Task <IActionResult> OnPostAsync()
        {
            var dto = ObjectMapper.Map <CreateEditEquipmentInspectionResultViewModel, CreateUpdateEquipmentInspectionResultDto>(ViewModel);
            await _service.CreateAsync(dto);

            return(NoContent());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> OnPostAsync()
        {
            await _service.CreateAsync(EquipmentInspectionResult);

            return(NoContent());
        }