Esempio n. 1
0
 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");
     }
 }
Esempio n. 2
0
 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");
     }
 }
Esempio n. 3
0
 partial void UpdateStar(Star instance);
Esempio n. 4
0
 partial void DeleteStar(Star instance);
Esempio n. 5
0
 partial void InsertStar(Star instance);