mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-06 00:36:39 +00:00
DTO->Resouces
This commit is contained in:
parent
2a693dfebd
commit
528e4d3b77
13 changed files with 14 additions and 14 deletions
|
|
@ -8,7 +8,7 @@ using Microsoft.AspNetCore.Authorization;
|
|||
using Microsoft.AspNetCore.Http;
|
||||
using TicketManager.Data;
|
||||
using TicketManager.Models;
|
||||
using TicketManager.DTO;
|
||||
using TicketManager.Resources;
|
||||
|
||||
|
||||
namespace TicketManager.Controllers
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using TicketManager.Data;
|
||||
using TicketManager.Models;
|
||||
using TicketManager.DTO;
|
||||
using TicketManager.Resources;
|
||||
using System;
|
||||
|
||||
namespace TicketManager.Controllers
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using Microsoft.AspNetCore.Authorization;
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using TicketManager.Data;
|
||||
using TicketManager.DTO;
|
||||
using TicketManager.Resources;
|
||||
using TicketManager.Models;
|
||||
|
||||
namespace TicketManager.Controllers
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
|
|||
using System.Linq;
|
||||
using TicketManager.Models;
|
||||
|
||||
namespace TicketManager.DTO
|
||||
namespace TicketManager.Resources
|
||||
{
|
||||
public class AppUserDTO
|
||||
{
|
||||
|
|
@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
|
|||
using System.Linq;
|
||||
using TicketManager.Models;
|
||||
|
||||
namespace TicketManager.DTO
|
||||
namespace TicketManager.Resources
|
||||
{
|
||||
public class AppUserDTORead
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace TicketManager.DTO
|
||||
namespace TicketManager.Resources
|
||||
{
|
||||
public class NewAppUserDTO
|
||||
{
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace TicketManager.DTO
|
||||
namespace TicketManager.Resources
|
||||
{
|
||||
public class NewProjectDTO
|
||||
{
|
||||
|
|
@ -3,7 +3,7 @@ using System.Linq;
|
|||
using System.Collections.Generic;
|
||||
using TicketManager.Models;
|
||||
|
||||
namespace TicketManager.DTO
|
||||
namespace TicketManager.Resources
|
||||
{
|
||||
public class ProjectDTO
|
||||
{
|
||||
|
|
@ -3,7 +3,7 @@ using System.Linq;
|
|||
using System.Collections.Generic;
|
||||
using TicketManager.Models;
|
||||
|
||||
namespace TicketManager.DTO
|
||||
namespace TicketManager.Resources
|
||||
{
|
||||
public class ProjectDTORequest
|
||||
{
|
||||
|
|
@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
|
|||
using System.Linq;
|
||||
using TicketManager.Models;
|
||||
|
||||
namespace TicketManager.DTO
|
||||
namespace TicketManager.Resources
|
||||
{
|
||||
public class NewTicketDTO
|
||||
{
|
||||
|
|
@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
|
|||
using System.Linq;
|
||||
using TicketManager.Models;
|
||||
|
||||
namespace TicketManager.DTO
|
||||
namespace TicketManager.Resources
|
||||
{
|
||||
public class TicketDTO
|
||||
{
|
||||
|
|
@ -20,7 +20,7 @@ namespace TicketManager.DTO
|
|||
Difficulty = ticket.Difficulty.ToString();
|
||||
Category = ticket.Category.ToString();
|
||||
CreatorId = ticket.CreatorId;
|
||||
Project = new ProjectDTORequest(ticket.Project);
|
||||
Project = ticket.Project != null ? new ProjectDTORequest(ticket.Project) : null;
|
||||
Notes = ticket.Notes;
|
||||
Activities = ticket.Activities;
|
||||
Files = ticket.Files;
|
||||
|
|
@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
|
|||
using System.Linq;
|
||||
using TicketManager.Models;
|
||||
|
||||
namespace TicketManager.DTO
|
||||
namespace TicketManager.Resources
|
||||
{
|
||||
public class TicketDTORead
|
||||
{
|
||||
|
|
@ -8,7 +8,7 @@ using Microsoft.Data.Sqlite;
|
|||
using TicketManager.Controllers;
|
||||
using TicketManager.Data;
|
||||
using TicketManager.Models;
|
||||
using TicketManager.DTO;
|
||||
using TicketManager.Resources;
|
||||
|
||||
|
||||
namespace TicketManager.Tests
|
||||
|
|
|
|||
Loading…
Reference in a new issue