static void Main(string[] args) { Console.WriteLine("Hello World, I`m mapping!"); // Mapping example. var students = ICrudable.GetAll <Student>(); foreach (var student in students) { var viewModel = StudentViewModel.Map(student); Console.WriteLine($"{viewModel.UniqName} - {viewModel.AvgMark}"); } Console.ReadKey(); }
public List <Mark> LoadMarks() => ICrudable.GetAll <Mark>(x => x.StudentId == Id).ToList();