Ejemplo n.º 1
0
 public static ScreeningModel ToScreeningModel(this ServiceScreening scr)
 {
     return(new ScreeningModel()
     {
         ID = scr.ID,
         Name = scr.Name,
         Link = scr.Link,
         Year = scr.Year,
         BookID = scr.BookID
     });
 }
 public static DalScreening ToDalScreening(this ServiceScreening screening)
 {
     return(new DalScreening
     {
         ID = screening.ID,
         BookID = screening.BookID,
         Link = screening.Link,
         Name = screening.Name,
         Year = screening.Year
     });
 }
Ejemplo n.º 3
0
 public void AddScreening(ServiceBook book, ServiceScreening screening)
 {
     unit.Books.AddScreening(book.ToDalBook(), screening.ToDalScreening());
     unit.Save();
 }
Ejemplo n.º 4
0
 public void RemoveScreening(ServiceScreening screening)
 {
     unit.Books.DeleteScreening(screening.ToDalScreening());
     unit.Save();
 }