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)); }
public JsonResult getEmployerByClientIdAll(int clientID, int skip) { ClientEmployerViewModel objClientEmployerAll = new ClientEmployerViewModel(); var ClientEmpdetail = _iClientService.getClientEmployerByClientID(clientID, skip, GlobalConst.Records.Take5); objClientEmployerAll.ClientEmployerDetails = Mapper.Map <IEnumerable <ClientEmployer> >(ClientEmpdetail.ClientEmployerDetails); objClientEmployerAll.TotalCount = ClientEmpdetail.TotalCount; return(Json(objClientEmployerAll, GlobalConst.ContentTypes.TextHtml)); }