示例#1
0
        public ActionResult create(OptionVO Option)
        {
            Option.CreatedBy = HttpContext.User.Identity.Name;
            Boolean         IsSaved       = _OptionBizManager.CreateUpdateOption(Option);
            List <OptionVO> objOptionList = _OptionBizManager.GetAllOption(null, null);

            ViewBag.OptionDll = objOptionList.Select(x => new SelectListItem {
                Text = x.OptionName, Value = x.OptionId.ToString()
            }).ToList();
            return(RedirectToAction("Index", "Option", objOptionList));
        }
示例#2
0
 public bool CreateUpdateOption(OptionVO Option)
 {
     return(_optionDataManager.CreateUpdateOption(Mapper.Map <OptionVO, Option>(Option)));
 }