Refactoring and adding new endpoint
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user