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