コード例 #1
1
 public bool AddReply(Reply NewReply)
 {
     try {
         _ctx.Replies.Add(NewReply);
         return true;
     } catch (Exception e) {
         //TODO log this error
         return false;
     }
 }
コード例 #2
1
 public bool AddReply(Reply reply)
 {
     try
     {
         _ctx.Replies.Add(reply);
         return true;
     }
     catch (Exception)
     {
         return false;
     }
 }
コード例 #3
0
 public bool AddReply(Reply newReply)
 {
     try
     {
         this.context.Replies.Add(newReply);
         return true;
     }
     catch (Exception)
     {
         //TODO log this error
         return false;
     }
 }
コード例 #4
0
 public bool AddReply(Reply newReply)
 {
     try
     {
         _context.Replies.Add(newReply);
         return true;
     }
     catch (Exception e)
     {
         //TODO logging
         return false;
     }
 }
コード例 #5
0
 public bool AddReply(Reply newReply)
 {
     try
     {
         _context.Replies.Add(newReply);
         return true;
     }
     catch(Exception exception)
     {
         Console.WriteLine(exception);
         return false;
     }
 }
コード例 #6
0
 public bool AddReply(Reply reply)
 {
     reply.Id = new Random().Next(5, 1000);
       reply.Created = DateTime.UtcNow;
       return true;
 }
コード例 #7
0
 public bool AddReply(Reply newReply)
 {
     return true;
 }