public void FindAllTestNotNull() { // Act int result = departmentRepository.FindAll().Count(); // Assert Assert.IsTrue(result >= 0, "Unable to find all properly"); }
public DepartmentDto HelloWorld() { //return "Hello World"; DepartmentRepository repository = new DepartmentRepository(new eManagerContext()); Department d = repository.FindAll().First(); return(new DepartmentDto() { Id = d.Id, Name = d.Name }); //XmlDocument xm = new XmlDocument(); //return xm.LoadXml(repository.FindAll().ToString()); }
public List <Departments> FindAll(string CurrentUsername) { List <Departments> DepartmentsLists = DepartmentsRepository.FindAll(); return(DepartmentsLists); }
public IActionResult GetAllDepartment() { return(new OkObjectResult(departmentRepository.FindAll())); }
public List <Department> FindAllDepartments() { return(departmentRepository.FindAll().ToList()); }