public void PostTimeEventSpanList([FromBody] Fantik list) { SQLiteController.Init(); foreach (var lis in list.list) { SQLiteController.Insert(lis); } }
public int PostLogin([FromBody] string value) { SQLiteController.Init(); if (SQLiteController.CheckUser(value)) { return(SQLiteController.SelectUser().Where(x => x.UserName == value).FirstOrDefault().Id); } else { SQLiteController.Insert(new UserSpan { UserName = value }); return(SQLiteController.SelectUser().Where(x => x.UserName == value).FirstOrDefault().Id); } }
public string PostTimeEventSpan([FromBody] TimeEventSpan value) { SQLiteController.Init(); SQLiteController.Insert(value); return("jrtq"); }