Exemplo n.º 1
0
        public ActionResult EditClinic(int id)
        {
            // get clinic details
            var clinic = _clinicRepository.GetClinicDetailsOnly(id);

            if (clinic != null)
            {
                // map to view model
                var editClinic = Mapper.Map <Clinic, AddEditClinicViewModel>(clinic);

                return(View(editClinic));
            }

            return(HttpNotFound());
        }