Added stub for completing an assignment
This commit is contained in:
parent
c62e25681c
commit
ecd473dd45
@ -0,0 +1,10 @@
|
|||||||
|
using eSuite.Core.Miscellaneous;
|
||||||
|
|
||||||
|
namespace e_suite.API.Common;
|
||||||
|
|
||||||
|
public class PostAssignmentComplete
|
||||||
|
{
|
||||||
|
public GeneralIdRef AssignmentId { get; set; }
|
||||||
|
|
||||||
|
public Dictionary<string, object> TaskData { get; set; } = [];
|
||||||
|
}
|
||||||
@ -60,5 +60,22 @@ public class TasksController : ESuiteControllerBase
|
|||||||
return Ok(result);
|
return Ok(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Get the details of an assignment
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="assignmentId"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
|
[Route("completeAssignment")]
|
||||||
|
[AccessKey(SecurityAccess.ViewTasks)]
|
||||||
|
[HttpPost]
|
||||||
|
public async Task<IActionResult> CompleteAssignment([FromBody] PostAssignmentComplete completeAssignment, CancellationToken cancellationToken = default!
|
||||||
|
)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
//var result = await _activityManager.GetAssignmentDetails(AuditUserDetails, assignmentId, cancellationToken);
|
||||||
|
//return Ok(result);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user