public bool Add(Dentist obj) { try { var dto = obj.ToDto(); collection.InsertOne(dto); } catch (System.Exception) { return(false); } return(true); }