コード例 #1
0
        public HttpResponseMessage Put(int id)
        {
            RipOffContext _db        = new RipOffContext();
            var           modeUpdate = firmRepository.GetFirm().FirstOrDefault(e => e.Id == id);

            if (modeUpdate != null)
            {
                modeUpdate.firmlike = modeUpdate.firmlike + 1;
                firmRepository.Update(modeUpdate);

                return(Request.CreateResponse(HttpStatusCode.Created, modeUpdate));
            }

            return(Request.CreateResponse(HttpStatusCode.BadRequest));
        }
コード例 #2
0
        public HttpResponseMessage Put(ReportUpdateModel updateReport)
        {
            RipOffContext _db        = new RipOffContext();
            var           modeUpdate = _repository.Get().FirstOrDefault(e => e.Id == updateReport.ReportId);

            if (modeUpdate != null)
            {
                modeUpdate.Status = true;
                _repository.Update(modeUpdate);

                return(Request.CreateResponse(HttpStatusCode.Created, modeUpdate));
            }

            return(Request.CreateResponse(HttpStatusCode.BadRequest));
        }
コード例 #3
0
 public LawfirmRepository(RipOffContext ctx)
 {
     _ctx = ctx;
     _ctx.Configuration.LazyLoadingEnabled = false;
 }
コード例 #4
0
 public ClientLawsuitRepository(RipOffContext ctx)
 {
     _ctx = ctx;
     _ctx.Configuration.LazyLoadingEnabled = false;
 }
コード例 #5
0
 public ClientMeetingRequestRepository(RipOffContext ctx)
 {
     _ctx = ctx;
     _ctx.Configuration.LazyLoadingEnabled = false;
 }
コード例 #6
0
 public ReportRejectionRepository(RipOffContext ctx)
 {
     _ctx = ctx;
     _ctx.Configuration.LazyLoadingEnabled = false;
 }
コード例 #7
0
 public thankYouEmailRepository(RipOffContext ctx)
 {
     _ctx = ctx;
     _ctx.Configuration.LazyLoadingEnabled = false;
 }
コード例 #8
0
 public RebuttalImageRepository(RipOffContext ctx)
 {
     _ctx = ctx;
     _ctx.Configuration.LazyLoadingEnabled = false;
 }
コード例 #9
0
 public PaymentTypeRepository(RipOffContext ctx)
 {
     _ctx = ctx;
     _ctx.Configuration.LazyLoadingEnabled = false;
 }
コード例 #10
0
 public CaseUpdateRepository(RipOffContext ctx)
 {
     _ctx = ctx;
     _ctx.Configuration.LazyLoadingEnabled = false;
 }