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