public bool AddReply(Reply NewReply) { try { _ctx.Replies.Add(NewReply); return true; } catch (Exception e) { //TODO log this error return false; } }
public bool AddReply(Reply reply) { try { _ctx.Replies.Add(reply); return true; } catch (Exception) { return false; } }
public bool AddReply(Reply newReply) { try { this.context.Replies.Add(newReply); return true; } catch (Exception) { //TODO log this error return false; } }
public bool AddReply(Reply newReply) { try { _context.Replies.Add(newReply); return true; } catch (Exception e) { //TODO logging return false; } }
public bool AddReply(Reply newReply) { try { _context.Replies.Add(newReply); return true; } catch(Exception exception) { Console.WriteLine(exception); return false; } }
public bool AddReply(Reply reply) { reply.Id = new Random().Next(5, 1000); reply.Created = DateTime.UtcNow; return true; }
public bool AddReply(Reply newReply) { return true; }