/// <summary>
 /// 回复提交
 /// </summary>
 /// <param name="client"></param>
 public void ResponeCommit(TG_Client client, string sign)
 {
     if (LoginStatus.iUserType == 0)
     {
         if (string.IsNullOrEmpty(LoginStatus.sCategoryIds) || LoginStatus.sCategoryIds.Contains(sign) == false)
         {
             result.info = "您没有权限操作";
         }
         else
         {
             if (client.iState == 0)
             {
                 client.iState    = 1;
                 client.dDoneTime = DateTime.Now;
             }
             mangae.Edit <TG_Client>(client);
             result.success = mangae.SaveChange();
         }
     }
     else
     {
         if (client.iState == 0)
         {
             client.iState    = 1;
             client.dDoneTime = DateTime.Now;
         }
         mangae.Edit <TG_Client>(client);
         result.success = mangae.SaveChange();
     }
 }
 public ActionResult Add(TG_Client client)
 {
     client.dInsertTime = DateTime.Now;
     mangae.Add <TG_Client>(client);
     result.success = mangae.SaveChange();
     return(Json(result));
 }
 /// <summary>
 /// 客户留言
 /// </summary>
 /// <param name="client"></param>
 /// <returns></returns>
 public ActionResult Insert(TG_Client client)
 {
     using (var db = new Entities())
     {
         var result = new Result();
         client.dInsertTime = DateTime.Now;
         db.TG_Client.Add(client);
         var res = db.SaveChanges();
         if (res > 0)
         {
             result.info    = "留言成功";
             result.success = true;
         }
         return(Json(result));
     }
 }