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)); }
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)); }
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; }
public ReportRejectionRepository(RipOffContext ctx) { _ctx = ctx; _ctx.Configuration.LazyLoadingEnabled = false; }
public thankYouEmailRepository(RipOffContext ctx) { _ctx = ctx; _ctx.Configuration.LazyLoadingEnabled = false; }
public RebuttalImageRepository(RipOffContext ctx) { _ctx = ctx; _ctx.Configuration.LazyLoadingEnabled = false; }
public PaymentTypeRepository(RipOffContext ctx) { _ctx = ctx; _ctx.Configuration.LazyLoadingEnabled = false; }
public CaseUpdateRepository(RipOffContext ctx) { _ctx = ctx; _ctx.Configuration.LazyLoadingEnabled = false; }