public Shop PutShop(Shop item) { if (!_repository.Update(item)) throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound)); return item; }
public Shop PostShop(Shop item) { return _repository.Add(item); }