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