Beispiel #1
0
        public ActionResult CreateOrder()
        {
            string          id             = Request.QueryString["CommentId"].ToString();
            Guid            commentGuid    = Guid.Parse(id);
            IOrderManager   orderManager   = new OrderManager();
            ICommentManager commentManager = new CommentManager();
            CommentDTO      commentDTO     = commentManager.GetComment(commentGuid);

            orderManager.Relase(new OrderDTO()
            {
                CommentId  = commentDTO.CommentId,
                CreateTime = commentDTO.CreateTime,
                DemandId   = commentDTO.DemandId,
                OrderState = 100000,
                UserId     = commentDTO.UserId
            });
            return(RedirectToAction("SucessResult", "Home"));
        }
 public void Edit(CommentDTO comment)
 {
     throw new NotImplementedException();
 }
 public void Delete(CommentDTO comment)
 {
     throw new NotImplementedException();
 }