public Member Add(Member member) { memberRepository.Add(member); return member; }
public Member Update(Member member) { memberRepository.Update(member); return member; }
public ActionResult GetStockholderByMemberId(Member member) { List<Stockholder> list = new List<Stockholder>(); if (member != null && member.Id != Guid.Empty) { var listStock = stockholderService.Get(); list = (from a in listStock where a.MemberId.Equals(member.Id) select a).ToList(); } return Json(list, JsonRequestBehavior.AllowGet); }
public ActionResult EditMemberInfo(Member member) { if (member != null) { memberService.Update(member); return Json(true); } return Json(false); }
public ActionResult DeleteMemberInfo(Member member) { try { if (member != null) { member.IsDeleted = true; memberService.Update(member); return Json(true); } } catch { return Json(false); } return Json(false); }
public ActionResult CreateMemberInfo(Member member) { if (member != null) { member.Id = Guid.NewGuid(); memberService.Add(member); } return Json(false); }