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