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