Example #1
0
 public static T ToServiceModel <T>(this ModelInterface.ISportOverview model)
     where T : ServiceModel.SportOverview, new()
 {
     return(new T
     {
         Name = model.Name,
         InErrorState = model.InErrorState,
         InPlay = model.InPlay,
         InPreMatch = model.InPreMatch,
         InSetup = model.InSetup,
         Total = model.Total
     });
 }
Example #2
0
 public static ServiceModel.SportDetails ToServiceModel(this ModelInterface.ISportOverview model)
 {
     return(ToServiceModel <ServiceModel.SportDetails>(model));
 }