Too fat???

So ive been trying to get pregnant for almost a year now and my gyno pretty much told me im too fat and my diet is bad and thats why im not getting pregnant.....does this sound legit and if so what do i do? :(