public IEnumerable <TableTemplate> GetTableTemplate()
        {
            //IEnumerable<TableTemplate> list = null;
            //using (var db = new TemplateModel())
            var list = db.TableTemplates.Where(p => p.IsDelete == false).ToList();

            list.ForEach(p => {
                db.Entry(p).State = EntityState.Detached;
            });
            return(list);
        }