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)); }
public bool CreateUpdateOption(OptionVO Option) { return(_optionDataManager.CreateUpdateOption(Mapper.Map <OptionVO, Option>(Option))); }