private object FindStockOuts(StockOutCriteria criteria)
 {
     IoC.Get<ICircularLoadViewModel>().StartLoading();
     IList<CoralPOS.Models.StockOut> stockOuts = StockOutLogic.FindByMultiCriteria(criteria);
     StockOutList = ObjectConverter.ConvertFrom(stockOuts);
     return null;
 }
 public void Search()
 {
     StockOutCriteria criteria = new StockOutCriteria();
     if(SelectedCategory!=null) criteria.CategoryName = SelectedCategory.CategoryName;
     if (SelectedDepartment != null) criteria.DepartmentName = SelectedDepartment.DepartmentName;
     if(!string.IsNullOrEmpty(ProductMasterNames))
     {
         criteria.ProductMasterNames = ProductMasterNames.Split(',').ToList();
     }
     if(!string.IsNullOrEmpty(ProductTypes))
     {
         criteria.TypeNames = ProductTypes.Split(',').ToList();
     }
     criteria.DatePick = DatePick;
     criteria.DepartmentPick = DepartmentPick;
     criteria.FromDate = FromDate;
     criteria.ToDate = ToDate;
     ExecuteHelper.OnBackgroundThread(() => FindStockOuts(criteria), CompletedLoadStockOuts);
 }