Exemple #1
0
 public Member Add(Member member)
 {
     memberRepository.Add(member);
     return member;
 }
Exemple #2
0
 public Member Update(Member member)
 {
     memberRepository.Update(member);
     return member;
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 public ActionResult EditMemberInfo(Member member)
 {
     if (member != null)
     {
         memberService.Update(member);
         return Json(true);
     }
     return Json(false);
 }
Exemple #5
0
        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);
        }
Exemple #6
0
 public ActionResult CreateMemberInfo(Member member)
 {
     if (member != null)
     {
         member.Id = Guid.NewGuid();
         memberService.Add(member);
     }
     return Json(false);
 }