示例#1
0
 public static ProgrammeResponse FromProgramme(Programme programme)
 {
     return(new ProgrammeResponse
     {
         Id = programme.Id,
         Name = programme.Name,
         Hidden = programme.Hidden,
         CategoryId = programme.CategoryId,
         CategoryName = programme.Category.Name,
         End = programme.End.Date.ToShortDateString(),
         Start = programme.Start.Date.ToShortDateString(),
         TotalStudents = programme.TotalStudents(),
         PublicStudents = programme.PublicStudents()
     });
 }