public ActionResult PropertyTenants(int id) { //Mohan code change is required to get property by owner id Property pro = _propertyRepo.Get(id); ViewBag.PropertyID = id; ViewBag.PropertyName = pro.Name; return(View(BGBCFunctions.TenantOutstanding(id))); }
public ActionResult PropertyTenants(int id) { Property pro = _propertyRepo.Get(id); ViewBag.PropertyID = id; ViewBag.PropertyName = pro.Name; ViewBag.UserId = pro.UserID; //User userid = _propertyRepo.Get().Where(x => x.UserID == id); //ViewBag.UserId = userid; return(View(BGBCFunctions.TenantOutstanding(id))); }