public async Task <IList <Family> > GetList() { var query = new FamilyQuery(); query.Skip = 0; query.Count = 10; query.OrderByDesc(x => x.CreationTime); var item3 = await Repository.GetListAsync(query); var t = item3.Item2.First(); DateTime dt = new DateTime(t.Time); return(item3.Item2); }
public async Task <string> Get(int id) { var list = await Repository.GetAllListAsync(); var family = list.First(); var item = await Repository.GetAsync(family.Id); var item2 = await Repository.GetListAsync(new FamilyQuery()); var query = new FamilyQuery(); query.Skip = 0; query.Count = 10; query.OrderByDesc(x => x.CreationTime); var item3 = await Repository.GetListAsync(query); var item5 = await Repository.FirstOrDefaultAsync(family.Id); Family andersenFamily = new Family { Id = family.Id, LastName = "ggggeee", Parents = new Parent[] { new Parent { FirstName = "gesg" }, new Parent { FirstName = "ges gesg" } }, Children = new Child[] { new Child { FirstName = "gseg Thaulow", Gender = "segesg", Grade = 10, Pets = new Pet[] { new Pet { GivenName = "segesg" } } } }, District = "WA5", Address = new Address { State = "WA", County = "King", City = "Seattle" }, IsRegistered = true, Time = DateTime.Now.Ticks }; var item6 = await Repository.UpdateAsync(andersenFamily); var item7 = await Repository.FirstOrDefaultAsync(family.Id); return("value"); }