public RefreshStatusModel GetRefreshData() { RefreshStatusModel refreshStatus = new RefreshStatusModel(); refreshStatus = context.refreshStausObj.Single(x => x.Code == "Change"); return(refreshStatus); }
public JsonResult StausCheck() { RefreshStatusModel refreshStatus = new RefreshStatusModel(); refreshStatus = sqlService.GetRefreshData(); return(Json(refreshStatus)); }
public void setRefreshDataFalse() { RefreshStatusModel refreshStatus = new RefreshStatusModel(); refreshStatus = context.refreshStausObj.Single(x => x.Code == "Change"); refreshStatus.rfStatus = false; context.Entry(refreshStatus).State = Microsoft.EntityFrameworkCore.EntityState.Modified; context.SaveChanges(); }