public WCS_TASKINFO Get1(MainDate <WCS_TASKINFO> rec) { var db = OracleDB.GetInstance(); var date = db.Queryable <WCS_TASKINFO>().ToList(); string ss = date[0].ToString(); return(date[0]); }
private void UpdateDate() { if (MainDate.ToShortDateString() == DateTime.Now.ToShortDateString()) { ActualDateText = MainDate.ToShortDateString(); ActualDayText = "Today"; } else { ActualDateText = MainDate.ToShortDateString(); ActualDayText = MainDate.DayOfWeek.ToString(); } if (Session.LoggedUser.Plans != null) { GetPlanForSpecficDay(); } }
// GET api/values public IEnumerable <string> Get(MainDate <WCS_TASKINFO> rec) { var db = OracleDB.GetInstance(); var date = db.Queryable <WCS_TASKINFO>().ToList(); string ss = date[0].ToString(); var requestJson = JsonConvert.SerializeObject(rec); HttpContent httpContent = new StringContent(requestJson); httpContent.Headers.ContentType = new MediaTypeHeaderValue("application/json"); var httpClient = new HttpClient(); var responseJson = httpClient.PostAsync("https://localhost:44352/jcz", httpContent).Result.Content.ReadAsStringAsync().Result; //ViewBag.s = responseJson; return(new string[] { "value1", "value2" }); }