예제 #1
0
 /*Region Of Ingredient*/
 public ActionResult Ingredient()
 {
     try
     {
         var lstCompanyIds = GetListCompany().Select(x => x.Value).ToList();
         RecipeIngredientViewModels model = new RecipeIngredientViewModels();
         var datas = _factory.GetListRecipeIngredient(lstCompanyIds);
         model.ListItem = datas;
         return(View(model));
     }
     catch (Exception ex)
     {
         _logger.Error("Recipe_Ingredient: " + ex);
         return(new HttpStatusCodeResult(400, ex.Message));
     }
 }