Пример #1
0
        public ActionResult Index()
        {
            if (TempData["Message"] != null)
            {
                ViewBag.Message = TempData["Message"].ToString();
            }

            PagedClient objClient = new PagedClient();

            if (HCRGCLIENT.ClientTypeID == 1)
            {
                objClient = Mapper.Map <PagedClient>(_clientService.GetClientsOrganization());
            }
            else
            {
                objClient = Mapper.Map <PagedClient>(_clientService.GetClientsByOrganizationID(HCRGCLIENT.OrganizationID));
            }
            foreach (var objClientResult in objClient.Clients)
            {
                objClientResult.EncryptedClientID = EncryptString(objClientResult.ClientID.ToString());
            }
            return(View(objClient));
        }