public async Task <ActionResult <AssignmentDto> > AddAssignment(AddAssignmentDto assignmentDto)
        {
            if (assignmentDto == null)
            {
                return(BadRequest(InvalidAssignmentError));
            }
            if (!PermissionDataFiltersExtensions.HasAccessToLocation(User, Db, assignmentDto.LocationId))
            {
                return(Forbid());
            }

            var assignment        = assignmentDto.Adapt <Assignment>();
            var createdAssignment = await AssignmentService.CreateAssignment(assignment);

            return(Ok(createdAssignment.Adapt <AssignmentDto>()));
        }