public Almacen Get(int id)
        {
            Almacen item = repository.Get(id);

            if (item == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
            return(item);
        }
Пример #2
0
 public IList <Almacen> GetAll()
 {
     try
     {
         return(repository.Get());
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Пример #3
0
 public Almacen Get(Expression <Func <Almacen, bool> > where) => _repository.Get(where);