public ItemModel Edit(int id, [FromBody] ItemModel model)
 {
     if (model.Image != null)
     {
         var arrData = model.Image.Split(';');
         if (arrData.Length == 3)
         {
             var savePath = $@"{arrData[0]}";
             model.Image = $"{savePath}";
             SaveFileFromBase64String(savePath, arrData[2]);
         }
     }
     _itemBusiness.Edit(id, model);
     return(model);
 }
Example #2
0
 public ItemModel Edit(int id, [FromBody] ItemModel model)
 {
     _itemBusiness.Edit(id, model);
     return(model);
 }