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); }
public SystemUsersController(IContactFacade _contactService, IOrganizationFacade _orgService) { this.contactService = _contactService ?? throw new ArgumentNullException(nameof(_contactService)); this.orgService = _orgService ?? throw new ArgumentNullException(nameof(_orgService)); }
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)); }
public OrganizationController(IOrganizationFacade organizationFacade) { _organizationFacade = organizationFacade ?? throw new ArgumentNullException(nameof(organizationFacade)); }
public ContactController(IContactFacade contactFacade, IOrganizationFacade orgFacade) { _contactFacade = contactFacade ?? throw new ArgumentNullException(nameof(contactFacade)); _orgFacade = orgFacade ?? throw new ArgumentNullException(nameof(orgFacade)); }