public ActionResult InsertStockholder(Stockholder stockholder) { if (stockholder != null) { stockholder.Id = Guid.NewGuid(); stockholderService.Add(stockholder); return Json(true); } return Json(false); }
public ActionResult DelStockholder(Stockholder stockholder) { if (stockholder != null) { stockholderService.Remove(stockholder.Id); return Json(true); } return Json(false); }
public Stockholder Update(Stockholder stockholder) { stockholderRepository.Update(stockholder); return stockholder; }
public ActionResult UpdateStockholder(Stockholder stockholder) { if (stockholder != null) { stockholderService.Update(stockholder); return Json(true); } return Json(false); }
public Stockholder Add(Stockholder stockholder) { stockholderRepository.Add(stockholder); return stockholder; }