Prepare the liver dough. To do this, remove the veins and films from the soaked liver. Cut the liver into pieces and grind it into a puree using a meat grinder or blender. Add milk, eggs, salt and ground pepper to the liver puree. Mix thoroughly. Add sifted flour to the liver mass. Mix the dough until it is lump-free.
Start baking liver pancakes. Heat a frying pan with sunflower oil. Pour a pancake (one ladle) into the pan, spread it evenly with a spoon or spatula. Fry on one side for 2 minutes, turn over and fry on the other side for another 1 minute. Transfer the finished pancake to a plate. Make pancakes from all the liver dough.
Prepare a vegetable fry. To do this, fry the onion in vegetable oil in a clean frying pan until done. Add grated carrots to the onion, stir the vegetables. Simmer for 10 minutes on low heat under the lid. Turn off the heat when the vegetables are done, let them cool completely.
Assemble the cake. Place a liver pancake on a wide plate, spread it evenly with mayonnaise or sour cream. Put the cooled garnish as the next layer, spreading it evenly with a spoon. Assemble the cake, alternating layers: pancake, mayonnaise, garnish. Apply mayonnaise as the last layer.
Place the beef liver pie in the refrigerator to soak for 2 hours.