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); }
public bool Delete(string name) { IStudentService = new StudentServices(); return(IStudentService.Delete(name)); }