Esempio n. 1
0
        public JsonResult getInsurerByClientIdAll(int clientID, int skip)
        {
            ClientInsurerViewModel objClientInsurerAll = new ClientInsurerViewModel();
            var ClientInsdetail = _iClientService.getClientInsurerByClientID(clientID, skip, GlobalConst.Records.Take5);

            objClientInsurerAll.ClientInsurerDetails = Mapper.Map <IEnumerable <ClientInsurer> >(ClientInsdetail.ClientInsurerDetails);
            objClientInsurerAll.TotalCount           = ClientInsdetail.TotalCount;
            return(Json(objClientInsurerAll, GlobalConst.ContentTypes.TextHtml));
        }
Esempio n. 2
0
        public JsonResult getAllInsurerByClientIdAll(int clientID)
        {
            ClientInsurerViewModel objClientInsurerAll = new ClientInsurerViewModel();
            var ClientInsdetail = _iClientService.getAllClientInsurerByClientID(clientID);

            objClientInsurerAll.ClientInsurerDetails = Mapper.Map <IEnumerable <ClientInsurer> >(ClientInsdetail);
            foreach (var ins in objClientInsurerAll.ClientInsurerDetails)
            {
                ins.InsValue = ins.InsurerID + "-" + ins.InsType;
            }
            return(Json(objClientInsurerAll, GlobalConst.ContentTypes.TextHtml));
        }