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

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