// GET: Atestado/Create public ActionResult Create() { ViewBag.ColaboradorId = new SelectList(_colaboradorAppServices.GetAll(), "ColaboradorId", "Nome"); ViewBag.CidId = new SelectList(_cidAppServices.GetAll(), "CidId", "Codigo"); ViewBag.ClinicaHospitalId = new SelectList(_clinicaHospitalAppServices.GetAll(), "ClinicaHospitalId", "Nome"); return(View()); }
// GET: Colaborador public ActionResult Index() { var colaboradorViewModel = Mapper.Map <ICollection <Colaborador>, ICollection <ColaboradorViewModel> > (_colaboradorAppServices.GetAll()); return(View(colaboradorViewModel)); }
public HttpResponseMessage Get() { var result = _colaboradorAppServices.GetAll(); return(Request.CreateResponse(HttpStatusCode.OK, result)); }