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