コード例 #1
0
        public Professor AddProfessor(Professor professor)
        {
            _logger.Log(LogLevel.Debug, "Request Received for ProfessorBLL::AddProfessor");

            var createdProfessor = _professorDal.AddProfessor(professor);

            _logger.Log(LogLevel.Debug, "Returning the results from ProfessorBLL::AddProfessor");

            return(createdProfessor);
        }
コード例 #2
0
        public async Task <Professor> AddProfessor(Professor professor)
        {
            _logger.Log(LogLevel.Debug, "Request Received for ProfessorBLL::AddProfessor");

            var newProfessor = await _professorDal.AddProfessor(professor);

            _logger.Log(LogLevel.Debug, "Returning the results from ProfessorBLL::AddProfessor");

            return(newProfessor);
        }