Example #1
0
        public static ArchModelView GetSketChup(int id)
        {
            ApplicationDbContext db   = new ApplicationDbContext();
            ArchModel            edit = db.ArchModels.FirstOrDefault(x => x.Id == id && x.Type == ModelType.SKETCHUP);

            return(ModelConverter.ArchModelToView(edit));
        }
Example #2
0
        public static List <ArchModelView> GetAllArchModelView()
        {
            List <ArchModel> a = DBHelper.GetAllArchModel();

            return(a.Select(x => ModelConverter.ArchModelToView(x)).ToList());
        }
Example #3
0
        public static ArchModelView getArchModelView(int id)
        {
            ArchModelView a = ModelConverter.ArchModelToView(DBHelper.getArchModel(id));

            return(a);
        }
Example #4
0
        public static List <ArchModelView> GetAllSketChup()
        {
            var listSketChup = DBHelper.GetAllSketChup();

            return(listSketChup.Select(x => ModelConverter.ArchModelToView(x)).ToList());
        }
Example #5
0
        public static List <ArchModelView> GetAll3DMax()
        {
            var list3DMax = DBHelper.GetAll3DMax();

            return(list3DMax.Select(x => ModelConverter.ArchModelToView(x)).ToList());
        }