public void GetLatestMeme() { MemeCreation = memeCreations.GetLatestMeme(); MemeImg = MemeCreation.MemeImg; }
public void OnGet() { MemeCreationRepository memeCreationRepo = new MemeCreationRepository(@"Data Source=(localdb)\mssqllocaldb;Initial Catalog=MemeGenerator;Integrated Security=True;"); latestMeme = memeCreationRepo.GetLatestMeme(); }