常用方法
常用方法
常用方法
常用方法
public ActionResult AddEditBuilding(int BuildingId) { BuildingViewModel model = new BuildingViewModel(); if (BuildingId > 0) { model = repo.BuildingById(BuildingId); } return(PartialView("AddEditBuilding", model)); }