Esempio n. 1
0
        public static Upload GetById(int id)
        {
            Upload Result = null;

            try
            {
                UploaDS DS = new UploaDS();
                String objectHash = Guid.NewGuid().ToString();
                DataRow dr = DS.GetObjectById(id, objectHash);

                if (dr != null)
                {
                    Result = new Upload();
                    ORM(Result, dr);
                }

            }
            catch (Exception ex)
            {
                throw ex;
            }

            return Result;
        }