예제 #1
0
        public bool Create(WxPostCaseViewModel model)
        {
            CaseService dbcase   = new CaseService();
            M_Case      caseitem = new M_Case()
            {
                CaseOfSubmit    = DateTime.Now,
                Complainant     = model.accuser,
                ComplainantId   = model.accuserid,
                DateOfBegin     = DateTime.Now,
                DateOfEnd       = DateTime.Now.AddDays(10),
                originalpay     = model.originalpay,
                Publisher       = model.accuser,
                PublisherId     = model.accuserid,
                Respondent      = model.respondent,
                RespondentId    = model.respondentid,
                StatementOfCase = model.description,
                StateOfCase     = model.state,
                Title           = model.title,
                OtherPay1       = model.otherPay1,
                OtherPay2       = model.otherPay2,
                OtherPay3       = model.otherPay3,
            };
            var result = dbcase.AddEntity(caseitem);

            if (result.ID != 0)
            {
                return(true);
            }
            return(false);
        }
예제 #2
0
        public bool CreateCase(WxPostCaseViewModel newCase)
        {
            var result = DataDeal.Repository.WxRepository.CaseInfo.Current.Create(newCase);

            return(result);
        }