예제 #1
0
        public IActionResult Remove()
        {
            //Student student = _studentServices.GetList(x => x.ID == 3, "", true).FirstOrDefault();
            Student student1 = _studentServices.Find(2);
            bool    isSuc    = _studentServices.Delete(student1);

            return(Json(student1));
        }
 public void Delete(int Id)
 {
     _studentServices.Delete(Id);
 }
예제 #3
0
 public bool Delete(string name)
 {
     IStudentService = new StudentServices();
     return(IStudentService.Delete(name));
 }