Example #1
0
 public static void delete(int id)
 {
     using (DAL.root.toolDAL dal = new DAL.root.toolDAL())
     {
         dal.delete(id);
     }
 }
Example #2
0
 public static int save(Models.replacegif m)
 {
     using (DAL.root.toolDAL dal = new DAL.root.toolDAL())
     {
         return(dal.save(m));
     }
 }
Example #3
0
 public static string getData()
 {
     using (DAL.root.toolDAL dal = new DAL.root.toolDAL())
     {
         using (Common.JsonParse jp = new Common.JsonParse())
         {
             return(jp.convert(dal.getData()));
         }
     }
 }