public ActionResult _KhxyEdit(string agreeCompId = "", long id = 0) { if (id <= 0) { return(View(new AgreeCompanyKhxy() { AgreeCompId = agreeCompId, HotelId = UserContext.CurrentUser.HotelId })); } var info = AgreeCompanyKhxyBll.GetById(id); return(View(info)); }