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)); }
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)); }