Example #1
0
 // 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());
     }
 }
Example #2
0
 public List <Tenant> Get()
 {
     return(tenantRepository.GetAllTenants());
 }