public IResult Delete(int examId) { _examDal.Delete(_examDal.Get(filter: exam => exam.Id == examId)); return(new SuccessResult(Messages.ExamDeleted)); }
public void Delete(Exam entity) { _examDal.Delete(entity); }
public void Delete(int examId) { _examDal.Delete(_examDal.Get(filter: exam => exam.Id == examId)); }