// GET: Tenant public ActionResult Index() { try { List <TblTenant> lstAllTenants = new List <TblTenant>(); lstAllTenants = tr.GetAllTenants(); return(View(lstAllTenants)); } catch (Exception ex) { newException.AddException(ex); return(View()); } }
public List <Tenant> Get() { return(tenantRepository.GetAllTenants()); }