Пример #1
0
 public void AddItem([FromBody] DbItem itemData)
 {
     _ = _dataAccess.AddItem(new DbItem
     {
         Id          = itemData.Id,
         Description = itemData.Description,
         ImageUrl    = itemData.ImageUrl,
         LastUpdate  = itemData.LastUpdate,
         Title       = itemData.Title,
         Url         = itemData.Url,
         WebsiteUrl  = itemData.WebsiteUrl
     });
 }