public ActionResult _Insert() { var item = new UserFavorsCrmGroup(); if (TryUpdateModel(item)) { item.UserName = Employee.CurrentUserName; CH.Create <UserFavorsCrmGroup>(item); } return(View(new GridModel(DataQuery()))); }
public ActionResult Create(UserFavorsCrmGroup item) { item.UserName = Employee.CurrentUserName; CH.Create <UserFavorsCrmGroup>(item); return(RedirectToAction("index", "salesex")); }