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

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