public Plate Create(CreatePlateCommand command) { var plate = new Plate(command.PlateName, command.Price, command.RestaurantId); plate.Create(); _repository.Create(plate); if (Commit()) { return(plate); } return(null); }