public async Task <IActionResult> Update(string id, [FromBody] UpsellModel upsell) { var upsellEntity = mapper.Map <UpsellEntity>(upsell); await upsellRepository.UpdateAsync(id, upsellEntity); return(NoContent()); }
public async Task <IActionResult> Create([FromBody] UpsellModel upsell) { var upsellEntity = mapper.Map <UpsellEntity>(upsell); await upsellRepository.InsertAsync(upsellEntity); return(Ok(upsellEntity)); }