public async Task <ActionResult> DeleteProfessor(Guid id)
        {
            var professorDeleted = await _professorsCosmosBll.DeleteProfessorById(id);

            if (professorDeleted == null)
            {
                return(StatusCode(404, $"Unable to find Professor with id {id}"));
            }
            else if (!(bool)professorDeleted)
            {
                return(StatusCode(500, $"Unable to delete Professor with id {id}"));
            }

            return(NoContent());
        }
        public override async Task <DeleteProfessorResponse> DeleteProfessorById(DeleteProfessorRequest request, ServerCallContext context)
        {
            _logger.Log(LogLevel.Debug, "Request Received for CollegeGrpcService::DeleteProfessorById");

            var professorDeleted = new DeleteProfessorResponse
            {
                ProfessorId = request.ProfessorId.ToString(),
                Message     = "Professor Deleted"
            };

            //professorDeleted.Success = await _professorsSqlBll
            //                                    .DeleteProfessorById(Guid.Parse(request.ProfessorId))
            //                                    .ConfigureAwait(false);
            professorDeleted.Success = await _professorsCosmosBll
                                       .DeleteProfessorById(Guid.Parse(request.ProfessorId))
                                       .ConfigureAwait(false);

            _logger.Log(LogLevel.Debug, "Returning the results from CollegeGrpcService::DeleteProfessorById");

            return(professorDeleted);
        }