예제 #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;
 }
 public ClientLawsuitRepository(RipOffContext ctx)
 {
     _ctx = ctx;
     _ctx.Configuration.LazyLoadingEnabled = false;
 }
 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;
 }