public ActionResult <List <Enterprise> > GetAll()
 {
     return(Ok(_service.GetAll()));
 }
Beispiel #2
0
        public IEnumerable <EnterpriseViewModel> GetAllEnterprises()
        {
            var data = _enterpriseService.GetAll(it => it.EnterpriseType);

            return(Mapper.Map <IEnumerable <EnterpriseViewModel> >(data));
        }