示例#1
0
        public IActionResult Delete(int id)
        {
            var emp = lopHocRepository.Get(id);

            if (emp != null)
            {
                lopHocRepository.Delete(emp.LopHocId);
                return(RedirectToAction("Index"));
            }
            return(View());
        }
示例#2
0
 public bool Delete(string id)
 {
     return(_res.Delete(id));
 }