Refactoring and adding new endpoint

This commit is contained in:
kdeng00
2023-10-06 22:18:23 -04:00
parent 4accff050c
commit 421488c120
6 changed files with 169 additions and 10 deletions
@@ -32,12 +32,12 @@ public class ContactQueueCreationController : ControllerBase
public IActionResult Upload([FromForm(Name = "file")] List<IFormFile> contactFile,
[FromForm(Name = "user_id")] string userID)
{
// TODO: Save the file on the filesystem to be processed by a separate
// Save the file on the filesystem to be processed by a separate
// system
var response = new CreateQueueResponse();
var connString = this._config.GetConnectionString("MongoDBURI");
var userRepo = new UsersRepository(connString!);
var queueRepo = new ContactCreationQueueepository(connString!);
var userRepo = new UsersRepository(connString!);
var queueRepo = new ContactCreationQueueRepository(connString!);
try
{