diff --git a/Scripts/cleanDevDb.sh b/Scripts/cleanDevDb.sh new file mode 100755 index 0000000..f470323 --- /dev/null +++ b/Scripts/cleanDevDb.sh @@ -0,0 +1,5 @@ +rm -r Migrations +rm app.db +dotnet ef migrations add Migration1 +dotnet ef database update +dotnet run \ No newline at end of file diff --git a/Scripts/scaffoldControllers.sh b/Scripts/scaffoldControllers.sh new file mode 100755 index 0000000..e68e6a7 --- /dev/null +++ b/Scripts/scaffoldControllers.sh @@ -0,0 +1,6 @@ +rm Controllers/AppUsersController.cs +rm Controllers/TicketsController.cs +rm Controllers/ProjectsController.cs +dotnet aspnet-codegenerator controller -name AppUsersController -async -api -m AppUser -dc AppDbContext -outDir Controllers +dotnet aspnet-codegenerator controller -name TicketsController -async -api -m Ticket -dc AppDbContext -outDir Controllers +dotnet aspnet-codegenerator controller -name ProjectsController -async -api -m Project -dc AppDbContext -outDir Controllers \ No newline at end of file diff --git a/TicketManager.sln b/TicketManager.sln new file mode 100644 index 0000000..87194a4 --- /dev/null +++ b/TicketManager.sln @@ -0,0 +1,17 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TicketManager", "TicketManager.csproj", "{45950CBF-5519-440D-AD30-35816EA6E48F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {45950CBF-5519-440D-AD30-35816EA6E48F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {45950CBF-5519-440D-AD30-35816EA6E48F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {45950CBF-5519-440D-AD30-35816EA6E48F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {45950CBF-5519-440D-AD30-35816EA6E48F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/client/src/controllers/ProjectController.tsx b/client/src/controllers/ProjectController.tsx index 21a0744..bc97254 100644 --- a/client/src/controllers/ProjectController.tsx +++ b/client/src/controllers/ProjectController.tsx @@ -10,6 +10,7 @@ import { User } from "../types/User"; export const ProjectController: FC = () => { // const [project, setProject] = useState({} as Project); const [isLoading, setIsLoading] = useState(false); + // const { id } = useParams(); // const getProject: Function = (id: number) => {