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

            return(NoContent());
        }
Beispiel #2
0
 public Task <BasketItemDto> CreateAsync(CreateBasketItemDto input)
 {
     return(_service.CreateAsync(input));
 }