Ejemplo n.º 1
0
 public bool AddFeedback(string name, string email, string address, string phone, string message)
 {
     try
     {
         Feedback fb = new Feedback();
         fb.Name        = name;
         fb.Email       = email;
         fb.Address     = address;
         fb.Phone       = phone;
         fb.Content     = message;
         fb.CreatedDate = DateTime.Now;
         fb.Status      = true;
         var flag = feedbackDAL.AddFeedback(fb);
         return(flag);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 /// <param name="entity"></param>
 public void AddFeedback(Feedback entity)
 {
     service.AddFeedback(entity);
 }