public GetRestorationTypeOutput GetRestorationTypeById(GetRestorationTypeInput input) { var RestorationType = _restorationTypeManager.getRestorationTypeById(input.Id); var output = Mapper.Map <Models.RestorationType, GetRestorationTypeOutput>(RestorationType); return(output); }
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)); }