public JsonResult SaveClient(int id, string name, DateTime date, string mail)
        {
            var  res = new ClientView();
            bool ok  = true;
            var  msg = "";

            try
            {
                var model = new ClientView();
                model.Id    = id;
                model.Name  = name;
                model.Email = mail;
                model.Date  = date;
                res         = _clientRepo.PostEditClient(model);
            }
            catch (Exception ex)
            {
                ok  = false;
                msg = ex.Message;
            }
            return(Json(new
            {
                Html = ok ? this.RenderPartialView("_NewRow", res) : "",
                Success = ok,
                Message = msg
            }));
        }