示例#1
0
        public RequestCommentBs()
        {
            _RequestComment = new GenericPattern <RequestComment>();
            _RequestSubmit  = new GenericPattern <RequestSubmit>();

            _RequestCommentModel = new RequestCommentModel();
        }
示例#2
0
 public RequestComment(RequestCommentModel item)
 {
     Id              = item.Id;
     UserId          = item.UserId;
     RequestSubmitId = item.RequestSubmitId;
     Comment         = item.Comment;
     UserTypeId      = item.UserTypeId;
     CreatedDate     = item.CreatedDate;
 }
示例#3
0
        public int Save(RequestCommentModel model)
        {
            RequestComment _requestComment = new RequestComment(model);

            if (model.Id != null && model.Id != 0)
            {
                _RequestComment.Update(_requestComment);
            }
            else
            {
                //  _requestApprove.CreatedDate = System.DateTime.Now;

                _requestComment = _RequestComment.Insert(_requestComment);
            }

            return(_requestComment.Id);
        }
示例#4
0
 public AdminCommentController()
 {
     _RequestCommentModel = new RequestCommentModel();
     _RequestCommentBs    = new RequestCommentBs();
 }
 public PanelRequestCommentController()
 {
     _RequestCommentModel = new RequestCommentModel();
     _RequestCommentBs    = new RequestCommentBs();
 }
示例#6
0
 public RequestCommentModel GetDetails(RequestCommentModel model)
 {
     throw new NotImplementedException();
 }