public bool CreateTeam(string name) { try { TeamCollection.InsertOne(new Team(name)); return(true); } catch (TimeoutException e) { Log.Error("Received time out for creating team => ", e); return(false); } catch (Exception e) { Log.Error("Failed to create team => ", e); return(false); } }