Ejemplo n.º 1
0
        public async Task <ActionResult <IEnumerable <Tenant> > > FindAll()
        {
            var tenantList = (await _tenantService.FindAllAsync());

            if (!HttpContext.User.IsInRole(RoleConstant.TENANT_MANAGER))
            {
                tenantList = tenantList.Select(t => t with {
                    Properties = null
                }).ToList();
Ejemplo n.º 2
0
 public async Task <ActionResult <IEnumerable <Tenant> > > FindAll()
 {
     var tenantList = (await _tenantService.FindAllAsync())
                      .Select(t => t with {
         Properties = null
     }).ToList();