public bool EditGradeOfPresentation(int presentationId, int grade) { try { var presentation = _repository.GetPresentationById(presentationId); presentation.Grade = grade; _repository.EditPresentation(presentation); } catch { return(false); } return(true); }