Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.3 kB
1
Indexable
Never
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace FlFi.Common.DTOs
{
    public class FilmDTO
    { 
        public int Id { get; set; }
   
        public string? Title { get; set; }

        public DateTime Released { get; set; }
        public int DirectorId { get; set; }
      
        public bool Free { get; set; }
      
        public string? Description { get; set; }
       
        public string? FilmUrl { get; set; }


        public List<FilmGenreDTO>? FilmGenres { get; set; }
        public string? Director { get; set; }
    }

    public class FilmCreateDTO
    {
        public int Id { get; set; }

        public string? Title { get; set; }

        public DateTime Released { get; set; }
        public int DirectorId { get; set; }

        public bool Free { get; set; }

        public string? Description { get; set; }

        public string? FilmUrl { get; set; }


        //public List<FilmGenreDTO>? FilmGenres { get; set; }
        //public string? Director { get; set; }
    }

    public class FilmEditDTO : FilmCreateDTO
    {
        public int Id { get; set; }
    }
}