Ejemplo n.º 1
0
        public IEnumerable <lut_organizationtype> lut_organizationtype_Filter(lut_organizationtype filterObj)
        {
            var db = new HealthvaultContext();

            return(from c in db.lut_organizationtype
                   where (filterObj.Identifier > 0 && c.Identifier == filterObj.Identifier)
                   select c);
        }
Ejemplo n.º 2
0
        public static lut_organizationtype ConvertParams(string Identifier)
        {
            lut_organizationtype NewObj = new lut_organizationtype();

            // Convert Identifier
            if (false == string.IsNullOrEmpty(Identifier))
            {
                short temp;
                if (false == short.TryParse(Identifier, out temp))
                {
                    throw new ArgumentOutOfRangeException("identifier");
                }
                else
                {
                    NewObj.Identifier = temp;
                }
            }
            return(NewObj);
        }
Ejemplo n.º 3
0
        public IEnumerable <lut_organizationtype> GetOrganizationType(string identifier)
        {
            try
            {
                CodesDAL codes = new CodesDAL();

                if (string.IsNullOrEmpty(identifier))
                {
                    return(codes.lut_organizationtype_GetAll());
                }
                else
                {
                    lut_organizationtype FilterObj = lut_organizationtypeConverter.ConvertParams(identifier);
                    return(codes.lut_organizationtype_Filter(FilterObj));
                }
            }
            catch
            {
                throw;
            }
        }