Exemplo n.º 1
0
 public JsonResult Accept(int id)
 {
     AppointmentBO.AppointmentCommentInsert(new AppointmentComment
     {
         CommentType   = (int)CommentType.Accepted,
         Comments      = "Accepted",
         CreateBy      = CurrentUser.Id,
         CreateDate    = DateTime.Now,
         ModifyBy      = CurrentUser.Id,
         ModifyDate    = DateTime.Now,
         AppointmentId = id
     });
     return(Json(1, JsonRequestBehavior.AllowGet));
 }
Exemplo n.º 2
0
        public JsonResult Reject(AppointmentComment comment)
        {
            if (comment != null)
            {
                comment.CommentType = CommentType.Rejected;
                comment.CreateBy    = CurrentUser.Id;
                comment.CreateDate  = DateTime.Now;
                comment.ModifyBy    = CurrentUser.Id;
                comment.ModifyDate  = DateTime.Now;
                AppointmentBO.AppointmentCommentInsert(comment);
            }

            return(Json(1, JsonRequestBehavior.AllowGet));
        }