// GET: RestorationType public ActionResult Index() { var restorationTypes = _restorationTypeAppService.getAllResorationTypes(); var restorationTypeViewModel = new RestorationTypeViewModel() { RestorationTypes = restorationTypes }; return(View("RestorationType", restorationTypeViewModel)); }
public ActionResult EditRestorationTypeModal(int RestorationTypeId) { var getRestorationTypeInput = new GetRestorationTypeInput() { Id = RestorationTypeId }; var restorationType = _restorationTypeAppService.GetRestorationTypeById(getRestorationTypeInput); var resorationTypeViewModel = new RestorationTypeViewModel() { RestorationType = restorationType }; return(View("_EditRestorationTypeModal", resorationTypeViewModel)); }