Ejemplo n.º 1
0
        public ProjectLocation GetProjectDefByCode(string code)
        {
            var repo = RepositoryForServer <ProjectLocation> .GetInstance("iS3Db");

            var result = (repo.context as CoreContext).ProjectLocation.Where(x => x.CODE == code).FirstOrDefault();

            return(result);
        }
Ejemplo n.º 2
0
        public List <ProjectLocation> GetProjectDefList()
        {
            var repo = RepositoryForServer <ProjectLocation> .GetInstance("iS3Db");

            return(repo.RetrieveAll().Result);
        }