public IActionResult GetCustomers([FromQuery] string search = "") { var customersFromRepo = _talaCustomerRepository.GetAll(search); var customers = Mapper.Map <IEnumerable <CustomerDto> >(customersFromRepo); return(Ok(customers)); }
public IActionResult GetFolders([FromQuery] string search = "") { var foldersFromRepo = _talaFileRepository.GetAll(search); var folders = Mapper.Map <IEnumerable <FileDto> >(foldersFromRepo); return(Ok(folders)); }
public void ShouldGet2Customers() { var queryresult = _sut.GetAll("").ToList(); Assert.Equal(2, queryresult.Count); }