public IHttpActionResult GetUserByName(string name) { var searchCriteris = new UserSearchCriteria(); searchCriteris.Name = name; var searchSpecification = new UserSpecificationForSearch(searchCriteris); return(Ok(GetUserList_DTO(_tenantRepo.Find(searchSpecification)))); }
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)); } }
public IHttpActionResult SearchUserByName(string name) { return(Ok(GetListOfDTO(_tenantRepository.Find(new UserSpecificationForSearch(new UserSearchCriteria { UserName = name }))))); }