示例#1
0
        public async Task <IActionResult> OnPostAsync()
        {
            var dto = ObjectMapper.Map <CreateEditEquipmentStatusViewModel, CreateUpdateEquipmentStatusDto>(ViewModel);
            await _service.UpdateAsync(Id, dto);

            return(NoContent());
        }
示例#2
0
        public async Task <IActionResult> OnPostAsync()
        {
            await _service.UpdateAsync(Id, EquipmentStatus);

            return(NoContent());
        }