Exemple #1
0
 public ActionResult Edit(int id)
 {
     return(View(_service.GetById(id)));
 }
 public ActionResult <List <Enterprise> > Get(string id)
 {
     return(Ok(_service.GetById(Guid.Parse(id))));
 }
Exemple #3
0
        public EnterpriseViewModel GetEnterpriseById(int id)
        {
            var data = _enterpriseService.GetById(id, it => it.EnterpriseType);

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