public void UpdateGarnish([FromUri] int id, [FromBody] GarnishInputDTO garnishBody) { sellerAppService.UpdateGarnish(new GarnishUpdateDTO() { Id = id, Name = garnishBody.Name, Description = garnishBody.Description }); }
public void CreateGarnish(GarnishInputDTO garnish) { sellerAppService.RegisterGarnish(new GarnishWithSellerDTO() { Name = garnish.Name, Description = garnish.Description, SellerId = CurrentUserId() }); }