public ActionResult <MentorRequest> CreateRequest([FromBody] MentorRequestParams requestParams) { if (!MentorValidator.IsMentorExists(requestParams.MentorID)) { return(BadRequest(ErrorHandler.GenerateError(ErrorHandler.MentorNotFound))); } if (!ProjectValidator.IsProjectExists(requestParams.ProjectID)) { return(BadRequest(ErrorHandler.GenerateError(ErrorHandler.ProjectNotFound))); } if (MentorRequestValidator.IsExistsRequest(requestParams)) { return(BadRequest(ErrorHandler.GenerateError(ErrorHandler.MentorRequestExists))); } return(_mentorRequestRepo.CreateRequest(requestParams)); }