using Abp.Web.Mvc.Authorization;
using Cinotam.AbpModuleZero.Authorization;
using Cinotam.ModuleZero.AppModule.MultiTenancy;
using System.Web.Mvc;

namespace Cinotam.AbpModuleZero.Web.Controllers
{
    [AbpMvcAuthorize(PermissionNames.PagesTenants)]
    public class TenantsController : AbpModuleZeroControllerBase
    {
        private readonly ITenantAppService _tenantAppService;
        public TenantsController(ITenantAppService tenantAppService)
        {
            _tenantAppService = tenantAppService;
        }
        public ActionResult Index()
        {
            var output = _tenantAppService.GetTenants();
            return View(output);
        }
        public ActionResult TenantCharts(int id)
        {
            throw new System.NotImplementedException();
        }
    }
}