public int DeleteMajor(int id) { return(_repository.DeleteMajor(id)); }
public IActionResult Delete(int id) { var deleteResult = majorRepository.DeleteMajor(id); return(Json(new { deleteResult })); }
public IActionResult Delete(int majorId) { _majorRepository.DeleteMajor(majorId); return(Ok()); }