Ejemplo n.º 1
0
        public async Task<Response<IEnumerable<SessionRetreiveAllResponse>>> RetreiveSessionsAsync(RetreiveAllSessionRequest request)
        {
            return await _factory.ProcessRequestAsync(async () =>
            {
                using (var uow = new CodeCamperUnitOfWork())
                {
                    /*
                    var sessions = uow.SessionsRepository.FindAll();

                    if (!string.IsNullOrEmpty(request.FilterExpression))                    
                        sessions = sessions.Where(s => s.Title.Contains(request.FilterExpression))                    
                     * */

                    return new List<SessionRetreiveAllResponse>() as IEnumerable<SessionRetreiveAllResponse>;
                }               
            });
        }
Ejemplo n.º 2
0
 public async Task<Response<IEnumerable<SessionRetreiveAllResponse>>> Search(RetreiveAllSessionRequest request)
 {
     return await _service.RetreiveSessionsAsync(request);            
 }