Exemplo n.º 1
0
    public static void DeleteEvaluation(long id)
    {
        var evaluation = Evaluations.FirstOrDefault(e => e.Id == id);

        if (evaluation == null)
        {
            return;
        }
        DataContext.Evaluations.Remove(evaluation);
        DataContext.SaveChanges();
    }