public static UserAccessLevelVM SetSubData(UserAccessLevel item, Guid aid) { var model = UserAccessLevelVM.MToVM(item); model.AccessLevel = StatusTypesReferencesVM.MToVM(StatusTypesReferencesService.GetByID(item.AccessLevelID)); model.DateTimeData = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(item.DateTimeStorageID)); return(model); }
public static UserAccessLevelVM SetSubDataAdmin(UserAccessLevel model) { var data = UserAccessLevelVM.MToVM(model); data.AccessLevel = StatusTypesReferencesVM.MToVM(StatusTypesReferencesService.GetByID(model.AccessLevelID)); data.DateTimeData = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(model.DateTimeStorageID)); data.Application = ApplicationInformationVM.MToVM(ApplicationInformationService.GetByID(model.ApplicationID)); return(data); }