Example #1
0
 public void SaveQuery(QueriesDTO q_dto)
 {
     using (var ctx = new MyDBContext())
     {
         ctx.Queries.Add(q_dto);
         ctx.SaveChanges();
     }
 }
Example #2
0
        public void SaveQuery(QueriesDTO q_dto)
        {
            MyDBService ser = new MyDBService();

            ser.SaveQuery(q_dto);
        }