public IServiceQueryResult <UserData> RetrieveByCredential(string email, string password) { if (!email.TrimHasValue() || !password.TrimHasValue()) { return(ServiceResultFactory.BuildServiceQueryResult((UserData)null)); } UserData user = Repository.RetrieveByCredential(email, SecurityHelper.Encrypt(password)); return(ServiceResultFactory.BuildServiceQueryResult(user)); }
public IServiceQueryResult <UserData> RetrieveByCredential(string username, string passsword) { if (!username.TrimHasValue() || !passsword.TrimHasValue()) { return(null); } string encryptedPassword = SecurityHelper.Encrypt(passsword); UserData data = Repository.RetrieveByCredential(username, encryptedPassword); return(ServiceResultFactory.BuildServiceQueryResult(data)); }
public IServiceQueryResultList <MainMenuData> GetPublishedMenus() { IEnumerable <MainMenuData> result = Repository.GetPublishedMenus(); return(ServiceResultFactory.BuildServiceQueryResult <MainMenuData>(result)); }
public IServiceQueryResultList <SupplierInfoData> Search(SupplierCriteria criteria) { IEnumerable <SupplierInfoData> result = Repository.Search(criteria); return(ServiceResultFactory.BuildServiceQueryResult <SupplierInfoData>(result)); }
public IServiceQueryResultList <ContactData> SearchByCustomer(object customerId) { IEnumerable <ContactData> result = Repository.SearchByCustomer(customerId); return(ServiceResultFactory.BuildServiceQueryResult <ContactData>(result)); }
public IServiceQueryResultList <CategoryData> RetrieveCategoryTree(object catalogId) { IEnumerable <CategoryData> result = Repository.RetrieveCategoryTree(catalogId); return(ServiceResultFactory.BuildServiceQueryResult <CategoryData>(result)); }
public IServiceQueryResult <OrderInfoData> GetOrderInfo(string orderNumber) { OrderInfoData result = Repository.GetOrderInfo(orderNumber); return(ServiceResultFactory.BuildServiceQueryResult <OrderInfoData>(result)); }
public IServiceQueryResultList <OrderBriefInfoData> GetOrdersInProcess(OrderCriteria criteria) { IEnumerable <OrderBriefInfoData> result = Repository.GetOrdersInProcess(criteria); return(ServiceResultFactory.BuildServiceQueryResult <OrderBriefInfoData>(result)); }
public IServiceQueryResultList <OrderData> SearchBySupplierAndStatus(object supplierId, int statusId) { IEnumerable <OrderData> result = Repository.SearchBySupplierAndStatus(supplierId, statusId); return(ServiceResultFactory.BuildServiceQueryResult <OrderData>(result)); }
public IServiceQueryResult <ProductInfoData> RetrieveProductInfo(object productId) { ProductInfoData result = Repository.RetrieveProductInfo(productId); return(ServiceResultFactory.BuildServiceQueryResult <ProductInfoData>(result)); }
public IServiceQueryResultList <ActivityData> SearchByEmployee(object id) { IEnumerable <ActivityData> result = Repository.SearchByEmployee(id); return(ServiceResultFactory.BuildServiceQueryResult <ActivityData>(result)); }
public IServiceQueryResultList <ShipToData> SearchByContactPhone(string phone) { IEnumerable <ShipToData> result = Repository.SearchByContactPhone(phone); return(ServiceResultFactory.BuildServiceQueryResult <ShipToData>(result)); }
public IServiceQueryResultList <FolderInfoData> GetSubsiteRootFolders() { IEnumerable <FolderInfoData> result = Repository.GetSubsiteRootFolders(); return(ServiceResultFactory.BuildServiceQueryResult <FolderInfoData>(result)); }
public IServiceQueryResultList <FolderInfoData> GetFolders(FolderType folderType) { IEnumerable <FolderInfoData> result = Repository.GetFolders(folderType); return(ServiceResultFactory.BuildServiceQueryResult <FolderInfoData>(result)); }
public IServiceQueryResultList <NotificationTemplateData> RetrieveByType(NotificationTypes type) { var result = Repository.RetrieveByType(type); return(ServiceResultFactory.BuildServiceQueryResult(result)); }
public IServiceQueryResult <TopicBriefInfoData> GetTopicInfo(object topicId) { TopicBriefInfoData result = Repository.GetTopicInfo(topicId); return(ServiceResultFactory.BuildServiceQueryResult <TopicBriefInfoData>(result)); }
public IServiceQueryResultList <TopicData> SearchByUser(object userId) { IEnumerable <TopicData> result = Repository.SearchByUser(userId); return(ServiceResultFactory.BuildServiceQueryResult <TopicData>(result)); }
public IServiceQueryResultList <TemplateInfoData> GetTemplatesInfo() { IEnumerable <TemplateInfoData> result = Repository.GetTemplatesInfo(); return(ServiceResultFactory.BuildServiceQueryResult <TemplateInfoData>(result)); }
public IServiceQueryResultList <OrderData> SearchByContact(object contactId) { IEnumerable <OrderData> result = Repository.SearchByContact(contactId); return(ServiceResultFactory.BuildServiceQueryResult <OrderData>(result)); }
public IServiceQueryResultList <SubsiteBriefData> GetSubsites(bool isPublished = false) { IEnumerable <SubsiteBriefData> result = Repository.GetSubsites(isPublished); return(ServiceResultFactory.BuildServiceQueryResult <SubsiteBriefData>(result)); }
public IServiceQueryResult <OrderInfoData> GetOrderInfo(object orderId) { OrderInfoData result = Repository.GetOrderInfo(orderId); return(ServiceResultFactory.BuildServiceQueryResult <OrderInfoData>(result)); }
public IServiceQueryResult <SubsiteInfoData> GetSubsiteInfo(object instanceId) { SubsiteInfoData result = Repository.GetSubsiteInfo(instanceId); return(ServiceResultFactory.BuildServiceQueryResult <SubsiteInfoData>(result)); }
public IServiceQueryResultList <OrderInfoData> GetOrdersInfo(IEnumerable <object> orderIds) { IEnumerable <OrderInfoData> result = Repository.GetOrdersInfo(orderIds); return(ServiceResultFactory.BuildServiceQueryResult <OrderInfoData>(result)); }
public IServiceQueryResult <SubjectData> RetrieveBySubjectType(string subjectName) { SubjectData data = Repository.RetrieveBySubjectType(subjectName); return(ServiceResultFactory.BuildServiceQueryResult(data)); }
public IServiceQueryResultList <LocationData> GetPublishedLocations() { IEnumerable <LocationData> result = Repository.GetPublishedLocations(); return(ServiceResultFactory.BuildServiceQueryResult <LocationData>(result)); }
public IServiceQueryResultList <ReviewInfoData> SearchInfosByProduct(object productId) { IEnumerable <ReviewInfoData> result = Repository.SearchInfosByProduct(productId); return(ServiceResultFactory.BuildServiceQueryResult <ReviewInfoData>(result)); }
public IServiceQueryResultList <ContactData> SearchByEmployee(object employeeId) { IEnumerable <ContactData> result = Repository.SearchByEmployee(employeeId); return(ServiceResultFactory.BuildServiceQueryResult <ContactData>(result)); }
public IServiceQueryResultList <ReviewInfoData> SearchInfosBySupplier(object supplierId) { IEnumerable <ReviewInfoData> result = Repository.SearchInfosBySupplier(supplierId); return(ServiceResultFactory.BuildServiceQueryResult <ReviewInfoData>(result)); }
public IServiceQueryResult <SupplierInfoData> RetrieveSupplierInfo(object supplierId) { SupplierInfoData result = Repository.RetrieveSupplierInfo(supplierId); return(ServiceResultFactory.BuildServiceQueryResult <SupplierInfoData>(result)); }
public IServiceQueryResultList <LanguagePhraseData> SearchByLanguage(object languageId) { IEnumerable <LanguagePhraseData> result = Repository.SearchByLanguage(languageId); return(ServiceResultFactory.BuildServiceQueryResult <LanguagePhraseData>(result)); }