public async Task <ActionResult> Modified_Client(ClientCardModifeidViewModel model)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    IMapper    map     = MappingConfig.MapperConfigClient.CreateMapper();
                    ClientCard context = map.Map <ClientCard>(model);

                    string src = await _repository.ModifeidClientCardAsync(context);

                    if (src != null)
                    {
                        logger.Error(src);
                    }

                    ModelState.Clear();
                }
                catch (System.Exception ex)
                {
                    logger.Error("error: {0}", ex.Message);
                    ModelState.Clear();
                }
            }
            return(RedirectToAction("List_Client"));
        }
        public async Task <ActionResult> Modified_Client(int id)
        {
            //TODO: "date time", modified
            try
            {
                var model = await _repository.ClientCard.FirstOrDefaultAsync(m => m.ClientId == id);

                if (model == null)
                {
                    return(HttpNotFound());
                }
                IMapper map = MappingConfig.MapperConfigClient.CreateMapper();
                ClientCardModifeidViewModel context = map.Map <ClientCardModifeidViewModel>(model);
                return(View(context));
            }
            catch (Exception ex)
            {
                logger.Error("error: {0}", ex.Message);
            }
            return(View());
        }