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

            return item;
        }
Example #2
0
 public Brand PostBrand(Brand item)
 {
     return _repository.Add(item);
 }