Esempio n. 1
0
        public bool Insert(RepliesVM repliesVM)
        {
            var push      = new Replies(repliesVM);
            var getTicket = myContext.Tickets.Find(repliesVM.Ticket_Id);

            push.Ticket = getTicket;
            myContext.Replies.Add(push);
            var result = myContext.SaveChanges();

            if (result > 0)
            {
                status = true;
            }
            return(status);
        }
Esempio n. 2
0
 public bool Insert(RepliesVM repliesVM)
 {
     throw new NotImplementedException();
 }
 public Replies(RepliesVM repliesVM)
 {
     this.Message    = repliesVM.Message;
     this.Reply_From = repliesVM.Reply_From;
     this.CreateDate = DateTimeOffset.Now.ToLocalTime();
 }