public static void MapFromEntity(this AdminEventDetailsModel model, Event @event)
 {
     model.Id    = @event.Id;
     model.Name  = @event.Name;
     model.Blue  = @event.ColorComponentBlue;
     model.Green = @event.ColorComponentGreen;
     model.Red   = @event.ColorComponentRed;
 }
 public static void MapToEntity(this AdminEventDetailsModel model, Event @event)
 {
     @event.Id                  = model.Id;
     @event.IsActive            = true;
     @event.Name                = model.Name;
     @event.ColorComponentBlue  = model.Blue.Value;
     @event.ColorComponentGreen = model.Green.Value;
     @event.ColorComponentRed   = model.Red.Value;
 }