public GetHumanitarianEventResponse GetHumanitarianEvents(GetHumanitarianEventRequest request) { var response = new GetHumanitarianEventResponse(); using (var context = new HumanitarianEventContext()) { response.Events = (from c in context.HumanitarianEvents select c).ToList(); } return response; }
public GetHumanitarianEventResponse GetHumanitarianEvents(GetHumanitarianEventRequest request) { var dao = new HumanitarianDao(); return dao.GetHumanitarianEvents(request); }