Exemple #1
0
        public async Task <IActionResult> OnPostAsync()
        {
            var dto = ObjectMapper.Map <CreateEditEquipmentBrandViewModel, CreateUpdateEquipmentBrandDto>(ViewModel);
            await _service.CreateAsync(dto);

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

            return(NoContent());
        }