常用方法
常用方法
常用方法
常用方法
public IActionResult DeleteHouse(int houseId) { //Delete house from database List <House> Properties; using (IPropertyRepository propRep = new PropertyRepository()) { propRep.DeleteHouse(houseId); Properties = propRep.PopulateHouses(); } return(View("~/Views/Property/Houses.cshtml", Properties)); }