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)); }