コード例 #1
0
        public IHttpActionResult GetUserByName(string name)
        {
            var searchCriteris = new UserSearchCriteria();

            searchCriteris.Name = name;

            var searchSpecification = new UserSpecificationForSearch(searchCriteris);


            return(Ok(GetUserList_DTO(_tenantRepo.Find(searchSpecification))));
        }
コード例 #2
0
ファイル: TenantStore.cs プロジェクト: DamilolaAdegunwa/abp-2
        public TenantConfiguration Find(Guid id)
        {
            using (_currentTenant.Change(null)) //TODO: No need this if we can implement to define host side (or tenant-independent) entities!
            {
                var tenant = _tenantRepository.Find(id);
                if (tenant == null)
                {
                    return(null);
                }

                return(_objectMapper.Map <Tenant, TenantConfiguration>(tenant));
            }
        }
コード例 #3
0
 public IHttpActionResult SearchUserByName(string name)
 {
     return(Ok(GetListOfDTO(_tenantRepository.Find(new UserSpecificationForSearch(new UserSearchCriteria {
         UserName = name
     })))));
 }