Exemplo n.º 1
0
 public static WeekDTO GetWeekDetailsByWeekId(int id)
 {
     using (Gymnastics_Studio_DataEntities GSDE = new Gymnastics_Studio_DataEntities())
     {
         Week Week = new Week();
         Week = GSDE.Weeks.FirstOrDefault(x => x.Id == id);
         return(WeekDTO.ConvertToDTO(Week));
     }
 }