diff --git a/Controllers/ProjectsController.cs b/Controllers/ProjectsController.cs index dae95cd..bc03632 100644 --- a/Controllers/ProjectsController.cs +++ b/Controllers/ProjectsController.cs @@ -264,6 +264,7 @@ namespace TicketManager.Controllers [ProducesResponseType(StatusCodes.Status404NotFound)] [HttpPatch("{id}/members")] public async Task> SetProjectMembers(int id, List projectMembers) + // [SAFETY] Use RequestDTO to limits posibilities. { Project project = await _context.Projects .Include(p => p.Assignments) diff --git a/DTOs/AppUser/NewAppUserDTO.cs b/DTOs/AppUser/NewAppUserDTO.cs index f565c0a..f99ae3d 100644 --- a/DTOs/AppUser/NewAppUserDTO.cs +++ b/DTOs/AppUser/NewAppUserDTO.cs @@ -1,17 +1,11 @@ -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using System.Linq; -using TicketManager.Models; namespace TicketManager.DTO { public class NewAppUserDTO { public string FirstName { get; set; } - public string LastName { get; set; } - public string Presentation { get; set; } [DataType(DataType.EmailAddress)] @@ -19,7 +13,6 @@ namespace TicketManager.DTO [DataType(DataType.PhoneNumber)] public string Phone { get; set; } - public string Picture { get; set; } } } \ No newline at end of file diff --git a/DTOs/Project/NewProjectDTO.cs b/DTOs/Project/NewProjectDTO.cs index 107e7f1..b696398 100644 --- a/DTOs/Project/NewProjectDTO.cs +++ b/DTOs/Project/NewProjectDTO.cs @@ -7,11 +7,8 @@ namespace TicketManager.DTO { [Required] public string Title { get; set; } - public string Description { get; set; } - public DateTime EndingDate { get; set; } - public Guid ManagerId { get; set; } } } \ No newline at end of file