public ActionResult join_list_detail_delete(int?id) { tJoinList x = db.tJoinList.FirstOrDefault(m => m.fId == id); db.tJoinList.Remove(x); db.SaveChanges(); return(RedirectToAction("join_list_detail")); }
public ActionResult join_list_detail_edit(tJoinList x) { tJoinList s = db.tJoinList.FirstOrDefault(m => m.fId == x.fId); //s.fId = x.fId; //s.fActivityId = x.fActivityId; //s.fMemberId = x.fMemberId; //s.fJoinTime = x.fJoinTime; s.fJoinTypeId = x.fJoinTypeId; db.SaveChanges(); return(RedirectToAction("join_list_detail")); }
public ActionResult join_list_detail_edit(int?id) { tJoinList s = db.tJoinList.FirstOrDefault(m => m.fId == id); return(View(s)); }