Example #1
0
        public static void InsertNewTrophy(Guid desafioId, Guid usuarioId, Guid temporadaId, string name, DateTime startDate, DateTime endDate, int parameter, int goal, int prize)
        {
            var newTrophy = new TrophyEntity()
            {
                DesafioId   = desafioId,
                UsuarioId   = usuarioId,
                TemporadaId = temporadaId,
                Name        = name,
                StartDate   = startDate,
                EndDate     = endDate,
                Parameter   = parameter,
                Goal        = goal,
                Prize       = prize
            };

            TrophiesRepository.Get().InsertNewTrophy(newTrophy);
        }
Example #2
0
 public static List <TrophyEntity> GetTrophies(Guid usuarioId)
 {
     return(TrophiesRepository.Get().GetTrophies(usuarioId));
 }