Esempio n. 1
0
        public async Task <IActionResult> OnPostAsync()
        {
            var dto = ObjectMapper.Map <CreateEditEquipmentSparePartTypeViewModel, CreateUpdateEquipmentSparePartTypeDto>(ViewModel);
            await _service.UpdateAsync(Id, dto);

            return(NoContent());
        }
Esempio n. 2
0
        public async Task <IActionResult> OnPostAsync()
        {
            await _service.UpdateAsync(Id, EquipmentSparePartType);

            return(NoContent());
        }