示例#1
0
 public ProductController(IProductTypeFacade productTypeFacade, IProductSubtypeFacade productSubtypeFacade, IProductFacade productFacade, IOrganizationFacade organizationFacade)
 {
     _organizationFacade   = organizationFacade ?? throw new ArgumentNullException(nameof(organizationFacade));
     _productTypeFacade    = productTypeFacade ?? throw new ArgumentNullException(nameof(productTypeFacade));
     _productSubtypeFacade = productSubtypeFacade ?? throw new ArgumentNullException(nameof(productSubtypeFacade));
     _productFacade        = productFacade ?? throw new ArgumentNullException(nameof(productFacade));
 }
        public List <OrganizeModel> GetOrange()
        {
            IOrganizationFacade OrganizationFacade = this.Organization;
            //var t = new EntDacBase<OrganizeModel>();
            //var t = new OrganizationDac();
            //Dictionary<string, object> dicWhere = DataConverterHelper.ConvertToDic(null);
            //CreateCriteria createCriteria = new CreateCriteria(dicWhere);
            //createCriteria.Add(ORMRestrictions<string>.Eq("OrgType", "Y"));
            //List<OrganizeModel> oli = t.Find(dicWhere) as List<OrganizeModel>;
            //var result=new EntDacBase<OrganizeModel>().LoadWithPage(0, Int32.MaxValue, DataConverterHelper.ConvertToDic(null));
            var result = OrganizationFacade.LoadWithPage(0, Int32.MaxValue, DataConverterHelper.ConvertToDic(null));

            //return new EntDacBase<OrganizeModel>().LoadWithPage(0, Int32.MaxValue, DataConverterHelper.ConvertToDic(null)).Results as List<OrganizeModel>;
            return(null);
        }
示例#3
0
 public SystemUsersController(IContactFacade _contactService, IOrganizationFacade _orgService)
 {
     this.contactService = _contactService ?? throw new ArgumentNullException(nameof(_contactService));
     this.orgService     = _orgService ?? throw new ArgumentNullException(nameof(_orgService));
 }
示例#4
0
 public AccountController(IAuthFacade _authService, IContactFacade _contactService, IOrganizationFacade _orgService)
 {
     this.authService    = _authService ?? throw new ArgumentNullException(nameof(_authService));
     this.contactService = _contactService ?? throw new ArgumentNullException(nameof(_contactService));
     this.orgService     = _orgService ?? throw new ArgumentNullException(nameof(_orgService));
 }
示例#5
0
 public OrganizationController(IOrganizationFacade organizationFacade)
 {
     _organizationFacade = organizationFacade ?? throw new ArgumentNullException(nameof(organizationFacade));
 }
示例#6
0
 public ContactController(IContactFacade contactFacade, IOrganizationFacade orgFacade)
 {
     _contactFacade = contactFacade ?? throw new ArgumentNullException(nameof(contactFacade));
     _orgFacade     = orgFacade ?? throw new ArgumentNullException(nameof(orgFacade));
 }