Esempio n. 1
0
        // 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());
        }
Esempio n. 2
0
        // GET: Colaborador
        public ActionResult Index()
        {
            var colaboradorViewModel = Mapper.Map <ICollection <Colaborador>, ICollection <ColaboradorViewModel> >
                                           (_colaboradorAppServices.GetAll());

            return(View(colaboradorViewModel));
        }
Esempio n. 3
0
        public HttpResponseMessage Get()
        {
            var result = _colaboradorAppServices.GetAll();

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }