Exemplo n.º 1
0
 public static SearchViewData Create(Staff staff)
 {
     return(new PersonSearchViewData
     {
         Description = staff.FullName(),
         Id = staff.Id.ToString(),
         SearchType = (int)SearchTypeEnum.Persons,
         ShortPersonInfo = StaffViewData.Create(staff)
     });
 }
Exemplo n.º 2
0
 public static LunchCountGridViewData Create(LunchCountGrid lunchCountGrid)
 {
     return(new LunchCountGridViewData
     {
         Students = StudentLunchCountViewData.Create(lunchCountGrid.Students),
         Staffs = StaffViewData.Create(lunchCountGrid.Staffs),
         MealItems = MealItemViewData.Create(lunchCountGrid.MealItems),
         Date = lunchCountGrid.Date,
         ClassId = lunchCountGrid.ClassId,
         IncludeGuest = lunchCountGrid.IncludeGuest
     });
 }
Exemplo n.º 3
0
        public ActionResult Schedule(int personId)
        {
            var staff = SchoolLocator.StaffService.GetStaff(personId);

            return(Json(PrepareScheduleData(StaffViewData.Create(staff))));
        }