public ActionResult AddStar(Star star) { star.Career = Request["career"]; BizStar.Insert(star); if (star.IsGroup) { //�ֶӺ���� return RedirectToAction("Index", new { isGroup = true }); } else if (star.Sex) { //������ return RedirectToAction("Index", new { sex = true }); } else { //Ů���� return RedirectToAction("Index"); } }
public ActionResult EditStar(Star star) { star.Career = Request["career"]; BizStar.Update( star.StarID, s => new Star { BirthDay = star.BirthDay, Career = star.Career, Description = star.Description, StarName = star.StarName, Zone = star.Zone } ); if (star.IsGroup) { //�ֶӺ���� return RedirectToAction("Index", new { isGroup = true }); } else if (star.Sex) { //������ return RedirectToAction("Index", new { sex = true }); } else { //Ů���� return RedirectToAction("Index"); } }
partial void UpdateStar(Star instance);
partial void DeleteStar(Star instance);
partial void InsertStar(Star instance);