public ActionResult <IEnumerable <Contractor> > Get() { try { return(Ok(_Repo.GetAll())); } catch (Exception e) { return(BadRequest(e.Message)); } }
internal IEnumerable <Contractor> GetAll() { return(_repo.GetAll()); }
internal IEnumerable <Contractor> GetAll() { return(_contractorsRepository.GetAll()); }
public IEnumerable <Contractor> GetContractors() { return(contractorsRepository .GetAll() .Select(c => c.AutoMapObject <DB.Contractor, Contractor>())); }
public ActionResult <IEnumerable <Contractor> > Get() { return(Ok(_cr.GetAll())); }