public int DeleteMajor(int id)
 {
     return(_repository.DeleteMajor(id));
 }
Пример #2
0
        public IActionResult Delete(int id)
        {
            var deleteResult = majorRepository.DeleteMajor(id);

            return(Json(new { deleteResult }));
        }
 public IActionResult Delete(int majorId)
 {
     _majorRepository.DeleteMajor(majorId);
     return(Ok());
 }