Example #1
0
        public async Task <IActionResult> Edit(string id)
        {
            ReceptionistEditInputModel receptionistEditInputModel = (await receptionistService.GetById(id)
                                                                     ).To <ReceptionistEditInputModel>();

            if (receptionistEditInputModel == null)
            {
                return(Redirect("/Administration/Receptionist/All"));
            }

            await GetAllHospitals();

            return(View(receptionistEditInputModel));
        }
        public async Task <IActionResult> Details(string id)
        {
            ReceptionistDetailsViewModel receptionist = (await receptionistService.GetById(id))
                                                        .To <ReceptionistDetailsViewModel>();

            return(View(receptionist));
        }