public JsonResult getAllEmployerByClientIdAll(int clientID) { ClientEmployerViewModel objClientEmployerAll = new ClientEmployerViewModel(); var ClientEmpdetail = _iClientService.getAllClientEmployerByClientID(clientID); objClientEmployerAll.ClientEmployerDetails = Mapper.Map <IEnumerable <ClientEmployer> >(ClientEmpdetail); return(Json(objClientEmployerAll, GlobalConst.ContentTypes.TextHtml)); }