Ejemplo n.º 1
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));
        }