예제 #1
0
        public virtual async Task <IActionResult> OnPostAsync()
        {
            var dto = ObjectMapper.Map <CreateEditGrantedStoreViewModel, CreateUpdateGrantedStoreDto>(ViewModel);
            await _service.CreateAsync(dto);

            return(NoContent());
        }
예제 #2
0
 public virtual Task <GrantedStoreDto> CreateAsync(CreateUpdateGrantedStoreDto input)
 {
     return(_service.CreateAsync(input));
 }