Beispiel #1
0
 public ActionResult InsertStockholder(Stockholder stockholder)
 {
     if (stockholder != null)
     {
         stockholder.Id = Guid.NewGuid();
         stockholderService.Add(stockholder);
         return Json(true);
     }
     return Json(false);
 }
Beispiel #2
0
 public ActionResult DelStockholder(Stockholder stockholder)
 {
     if (stockholder != null)
     {
         stockholderService.Remove(stockholder.Id);
         return Json(true);
     }
     return Json(false);
 }
Beispiel #3
0
 public Stockholder Update(Stockholder stockholder)
 {
     stockholderRepository.Update(stockholder);
     return stockholder;
 }
Beispiel #4
0
 public ActionResult UpdateStockholder(Stockholder stockholder)
 {
     if (stockholder != null)
     {
         stockholderService.Update(stockholder);
         return Json(true);
     }
     return Json(false);
 }
Beispiel #5
0
 public Stockholder Add(Stockholder stockholder)
 {
     stockholderRepository.Add(stockholder);
     return stockholder;
 }