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