Пример #1
0
 public static int addfeatures(string features, int id)
 {
     try
     {
         if (HttpContext.Current.Session["Type"].ToString().ToLower().Equals("admin"))
         {
             myDAL obj = new myDAL();
             return(obj.addfeatures(features, id));
         }
         else
         {
             return(-1);
         }
     }
     catch
     {
         return(-1);
     }
 }