Example #1
0
        public ActionResult IngredientUnit(int?id)
        {
            IngredientUnitModel ingredientUniList = new IngredientUnitModel();

            if (UserRolePermissionForPage.Add == true || UserRolePermissionForPage.Edit == true)
            {
                if (id > 0)
                {
                    int ingredientUnitId = Convert.ToInt32(id);
                    ingredientUniList = _iIngredientUnitService.GetIngredientUnitById(ingredientUnitId);
                }

                return(View(ingredientUniList));
            }
            else
            {
                return(RedirectToAction("NotFound", "Error"));
            }
        }