Exemple #1
0
        public Shop PutShop(Shop item)
        {
            if (!_repository.Update(item))
                throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound));

            return item;
        }
Exemple #2
0
 public Shop PostShop(Shop item)
 {
     return _repository.Add(item);
 }