예제 #1
0
        public async Task <ActionResult> GetAllClaimsOfTeams(string text_para, string claimRefNo)
        {
            ClaimTeamLoginModel client = (ClaimTeamLoginModel)Session[SessionHelper.claimTeamLogin];
            string        UserId       = client.UserId;
            ClaimServices services     = new ClaimServices();

            if (string.IsNullOrEmpty(text_para) && !string.IsNullOrEmpty(claimRefNo))
            {
                var d = await services.GetAllClaimsOfTeams(claimRefNo, client.Teams);

                return(Json(d.Take(10), JsonRequestBehavior.AllowGet));
            }

            var data = await services.GetAllClaimsOfTeams(text_para, client.Teams);

            return(Json(data.Take(10), JsonRequestBehavior.AllowGet));
        }