public async Task <ActionResult <AssignmentViewModel> > Post(string projectId, [FromBody] AssignmentForUpsertViewModel assignment)
        {
            var assignmentToCreate = assignment.GetAssignmentViewModel();

            assignmentToCreate.ProjectId = projectId;
            var result = await dataService.CreateEntity(assignmentToCreate);

            return(Created((this.Request?.Path ?? string.Empty) + $"/{result.Id}", result));
        }
        public async Task <ActionResult <AssignmentViewModel> > Patch(string projectId, string assignmentId, [FromBody] AssignmentForUpsertViewModel assignment)
        {
            var assignmentToUpdate = assignment.GetAssignmentViewModel();

            assignmentToUpdate.ProjectId = projectId;
            assignmentToUpdate.Id        = assignmentId;
            var result = await dataService.UpdateEntity(projectId, assignmentId, assignmentToUpdate);

            return(Ok(result));
        }