Exemplo n.º 1
0
 public static LocalSchoolViewData Create(Data.School.Model.School school)
 {
     return(new LocalSchoolViewData
     {
         Id = school.Id,
         Name = school.Name
     });
 }
Exemplo n.º 2
0
        public void Add(Data.School.Model.School school)
        {
            SchoolStorage.Add(school);

            var l = new List <SchoolInfo>
            {
                new SchoolInfo
                {
                    Name = school.Name,
                    IsChalkableEnabled = school.IsChalkableEnabled,
                    LocalId            = school.Id
                }
            };

            ServiceLocator.ServiceLocatorMaster.SchoolService.Add(l, Context.DistrictId.Value);
        }
Exemplo n.º 3
0
 public void Add(Data.School.Model.School school)
 {
     Add(new List <Data.School.Model.School> {
         school
     });
 }