public GetPropertyOwnershipOutput GetPropertyOwnershipById(GetPropertyOwnershipInput input) { var PropertyOwnership = _propertyOwnershipManager.getPropertyOwnershipById(input.Id); var output = Mapper.Map <Models.PropertyOwnership, GetPropertyOwnershipOutput>(PropertyOwnership); return(output); }
public ActionResult EditPropertyOwnershipModal(int propertyOwnershipId) { var PropertyOwnershipInput = new GetPropertyOwnershipInput() { Id = propertyOwnershipId }; var PropertyOwnership = _propertyOwnershipAppService.GetPropertyOwnershipById(PropertyOwnershipInput); var propertyOwnershipViewModel = new PropertyOwnershipViewModel() { PropertyOwnershipOutput = PropertyOwnership }; return(View("_EditPropertyOwnershipModal", propertyOwnershipViewModel)); }