public List<Address> Get(string clientId)
 {
     using (var rb = new RepositoryBase())
     {
         return rb.Get<Address>(GetSQLQuery(clientId));
     }
 }
 public List<ProgramType> Get()
 {
     using (var rb = new RepositoryBase())
     {
         return rb.Get<ProgramType>();
     }
 }
        public ProgramType Get(string id)
        {
            using (var rb = new RepositoryBase())
            {
                var c =  rb.Get<Case>(long.Parse(id));

                return rb.Get<ProgramType>(c.ProgramTypeId);
            }
        }
        public List<Document> Get(string id)
        {
            //Get CompassNumber from Client

            string compassNumber;
            using (var rb = new RepositoryBase())
            {
                compassNumber = rb.Get<Client>(long.Parse(id)).CompassNumber;
            }
            //Do a document search based on CompassNumber
            var dms = new OnBase("jturner", "jturner");
            return dms.GetDocuments(compassNumber);
        }
Beispiel #5
0
 public UserController()
 {
     Repository = new RepositoryBase(LocalConnectionString);
 }
 public ConnectTypeController()
 {
     Repository = new RepositoryBase();
 }