public async void ShouldSortByName() { var repo = new repo(); await repo.Create(new TestClass { Name = "Yashar", Age = 34 }); await repo.Create(new TestClass { Name = "Zahra", Age = 34 }); var res = await repo.Query(new List <string> { "Name", "Age" }, new Dictionary <string, bool> { { "Name", false } }, new List <Comparison>(), 1, 1); Assert.Equal("Zahra", res.Result.First().Name); }
public ActionResult Index() { repo repo = new repo(); repo.SubjectClasses = db.SubjectClasses.Take(6).ToList(); repo.Teachers = db.Teachers.Where(x => x.active == true).Take(4).ToList(); return(View(repo)); }
public ActionResult Index() { repo repo = new repo(); repo.service = db.Services.ToList(); repo.portofolio = db.Portofolios.ToList(); repo.Team = db.Teams.ToList(); return(View(repo)); }
public string mmatri([FromBody] DTOmatriculas dto) { repo p = new repo() return(p.m_matricula(dto)); }
public string ematri([FromBody] DTOmatriculas dto) { repo p = new repo(); return(p.e_matricula(dto)); }