Ejemplo n.º 1
0
 public ActionResult GetActiveZone(int id, int objectId)
 {
     var tzlvm = CreateViewModel<TimeZoneListViewModel>();
     List<UserTimeZone> zones = new List<UserTimeZone>();
     zones.Add(_userTimeZoneRepository.FindById(_userPermissionGroupService.GetUserActiveTimeZoneIdByBuildingObjectId(id, objectId)));
     Mapper.Map(zones, tzlvm.TimeZones);
     return PartialView("List", tzlvm);
 }