Example #1
0
 public List <Models.Resource> Handle(ResourcesByCategoryQuery message)
 {
     return(dataAccess.GetResourcesByCategory(message.Category).ToList());
 }
 public List <Models.Resource> Handle(ResourcesByCategoryQuery message)
 {
     return(this.dataContext.Resources.Where(x => x.CategoryTag == message.Category).ToList());
 }