diff --git a/Controllers/TicketsController.cs b/Controllers/TicketsController.cs index 78891dd..6a447b7 100644 --- a/Controllers/TicketsController.cs +++ b/Controllers/TicketsController.cs @@ -105,6 +105,9 @@ namespace TicketManager.Controllers Description = ticketDto.Description, EndingDate = ticketDto.EndingDate, CreatorId = ticketDto.CreatorId, + Category = (Category)ticketDto.Category, + Impact = (Impact)ticketDto.Impact, + Difficulty = (Difficulty)ticketDto.Difficulty, Project = await _context.Projects.FindAsync(ticketDto.ProjectId) }; diff --git a/Resources/Tickets/NewTicketDTO.cs b/Resources/Tickets/NewTicketDTO.cs index a8ebb28..c1e01bb 100644 --- a/Resources/Tickets/NewTicketDTO.cs +++ b/Resources/Tickets/NewTicketDTO.cs @@ -16,11 +16,11 @@ namespace TicketManager.Resources [DataType(DataType.Date)] public DateTime EndingDate { get; set; } - public string Impact { get; set; } + public int Impact { get; set; } - public string Difficulty { get; set; } + public int Difficulty { get; set; } - public string Category { get; set; } + public int Category { get; set; } [Required] public Guid CreatorId { get; set; } [Required] diff --git a/app.db b/app.db index 562fdf6..db588ef 100644 Binary files a/app.db and b/app.db differ diff --git a/client/src/components/Modals/NewTicketModal.tsx b/client/src/components/Modals/NewTicketModal.tsx index 97ee1be..34afeea 100644 --- a/client/src/components/Modals/NewTicketModal.tsx +++ b/client/src/components/Modals/NewTicketModal.tsx @@ -8,7 +8,6 @@ import { Theme, } from "@material-ui/core"; import Modal from "./Modal"; -import Ticket from "../../types/Ticket"; import Project from "../../types/Project"; import Category from "../../types/enums/category"; import Impact from "../../types/enums/impact";