using Microsoft.EntityFrameworkCore; using OFBButte.Application.Database; using OFBButte.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace OFBButte.Application.Missionary { public class GetMissionarySupportForm { private readonly IOFBContext context; public GetMissionarySupportForm(IOFBContext context) { this.context = context; } public MissionarySupport Handle(int id) { return context.MissionarySupportForms .Include(m => m.Children) .Include(m => m.CollegeRecommendations) .FirstOrDefault(m => m.Id == id); } } }