mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-12 03:36:39 +00:00
fix NewTicketDTO type mismatch in Enums
This commit is contained in:
parent
9d4769101a
commit
c3dca8edef
4 changed files with 6 additions and 4 deletions
|
|
@ -105,6 +105,9 @@ namespace TicketManager.Controllers
|
||||||
Description = ticketDto.Description,
|
Description = ticketDto.Description,
|
||||||
EndingDate = ticketDto.EndingDate,
|
EndingDate = ticketDto.EndingDate,
|
||||||
CreatorId = ticketDto.CreatorId,
|
CreatorId = ticketDto.CreatorId,
|
||||||
|
Category = (Category)ticketDto.Category,
|
||||||
|
Impact = (Impact)ticketDto.Impact,
|
||||||
|
Difficulty = (Difficulty)ticketDto.Difficulty,
|
||||||
Project = await _context.Projects.FindAsync(ticketDto.ProjectId)
|
Project = await _context.Projects.FindAsync(ticketDto.ProjectId)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,11 @@ namespace TicketManager.Resources
|
||||||
[DataType(DataType.Date)]
|
[DataType(DataType.Date)]
|
||||||
public DateTime EndingDate { get; set; }
|
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]
|
[Required]
|
||||||
public Guid CreatorId { get; set; }
|
public Guid CreatorId { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
|
|
|
||||||
BIN
app.db
BIN
app.db
Binary file not shown.
|
|
@ -8,7 +8,6 @@ import {
|
||||||
Theme,
|
Theme,
|
||||||
} from "@material-ui/core";
|
} from "@material-ui/core";
|
||||||
import Modal from "./Modal";
|
import Modal from "./Modal";
|
||||||
import Ticket from "../../types/Ticket";
|
|
||||||
import Project from "../../types/Project";
|
import Project from "../../types/Project";
|
||||||
import Category from "../../types/enums/category";
|
import Category from "../../types/enums/category";
|
||||||
import Impact from "../../types/enums/impact";
|
import Impact from "../../types/enums/impact";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue