Exemplo n.º 1
0
 public JsonResult Add(Students s)
 {
     if ((string)Session["Power"] != "1")
     {
         return(Json("0"));
     }
     StudentsDal.Add(s);
     return(Json(StudentsDal.List()));
 }
Exemplo n.º 2
0
        public int Add(Students students)
        {
            StudentsDal studentsHelp = new StudentsDal();

            return(studentsHelp.Add(students));
        }