Example #1
0
 public ActionResult Search(RecipeProductViewModels model)
 {
     try
     {
         var data = _factory.GetDataProduct(model.StoreID, model.Type, CurrentUser.ListOrganizationId, listStoreId);
         model.ListItem = data;
     }
     catch (Exception e)
     {
         _logger.Error("Recipe_Product_Search: " + e);
         return(new HttpStatusCodeResult(400, e.Message));
     }
     return(PartialView("_ListData", model));
 }