public ActionResult 新增消息() { if (CSession關鍵字.SK_LOGINED_EMPLOYEE != null) { DetailPromotionViewModel NewPromo = new DetailPromotionViewModel(); var categories = new PromotionRespoitory().GetPromoCategoryAll(); List <SelectListItem> Cateitems = new CommodityRespoitory().GetSelectList(categories); NewPromo.Categories = Cateitems; return(View(NewPromo)); } return(RedirectToAction("員工登入")); }