示例#1
0
        public IEnumerable <organization> GetOrganization(string Identifier,
                                                          string addressCity,
                                                          string partof,
                                                          string type,
                                                          string active,
                                                          string addressState)
        {
            try
            {
                if (string.IsNullOrEmpty(Identifier) &&
                    string.IsNullOrEmpty(addressCity) &&
                    string.IsNullOrEmpty(partof) &&
                    string.IsNullOrEmpty(type))
                {
                    OrganizationDAL OrgDAL = new OrganizationDAL();
                    return(OrgDAL.GetAll());
                }

                else
                {
                    organization    FilterObj = organizationConverter.ConvertParams(Identifier, active, type, addressCity, addressState, partof);
                    OrganizationDAL OrgDAL    = new OrganizationDAL();
                    return(OrgDAL.Filter(FilterObj));
                }
            }
            catch (Exception e)
            {
                throw e;
            }
        }
        internal List <Organization> GetAll()
        {
            List <Organization> listOfOrganization = organizationDal.GetAll();

            return(listOfOrganization);
        }