public ActionResult SearchMembers(int typeId, string date)
 {
     if (!isAuthenticated())
         return new HttpUnauthorizedResult();
     else
     {
         Member member = new Member();
         return Json(member.getMembers((Member.memberType)typeId, loggedUser.Unit, new Common().convertDate(date.Replace("/", "-"), true)), JsonRequestBehavior.AllowGet);
     }
 }
 public ActionResult SearchMember(string keyword)
 {
     if (!isAuthenticated())
         return new HttpUnauthorizedResult();
     else
     {
         Member member = new Member();
         return Json(member.getMembers(keyword, loggedUser.Unit), JsonRequestBehavior.AllowGet);
     }
 }