Exemplo n.º 1
0
        public ActionResult Details(int id)
        {
            var svc   = new MedicalService();
            var model = svc.GetMedicalById(id);

            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult Edit(int id)
        {
            var service = new MedicalService();
            var detail  = service.GetMedicalById(id);
            var model   =
                new MedicalEdit
            {
                MedicalId    = detail.MedicalId,
                Name         = detail.Name,
                Location     = detail.Location,
                PhoneNumber  = detail.PhoneNumber,
                Website      = detail.Website,
                FinancialAid = detail.FinancialAid,
                Details      = detail.Details
            };

            return(View(model));
        }