public async Task <IActionResult> OnPostAsync()
        {
            var dto = ObjectMapper.Map <CreateEditEquipmentInspectionViewModel, CreateUpdateEquipmentInspectionDto>(ViewModel);
            await _service.CreateAsync(dto);

            return(NoContent());
        }
示例#2
0
        public async Task <IActionResult> OnPostAsync()
        {
            await _service.CreateAsync(EquipmentInspection);

            return(NoContent());
        }