Example #1
0
        public static NotificationManagerVM SetSubData(NotificationManager data, Guid aid)
        {
            var model = NotificationManagerVM.MToVM(data);

            model.DateTime = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(data.DateTimeStorageID));
            return(model);
        }
Example #2
0
 public async Task <JsonResult> DSGet(string id, string aid)
 {
     try {
         var data = DateTimeStorageService.GetByID(Guid.Parse(id));
         return(Success(DateTimeStorageVM.MToVM(data)));
     } catch { return(Failed(MessageUtilityService.ServerError())); }
 }
Example #3
0
        public static ReviewStoragesVM SetSubData(ReviewStorages data, Guid aid)
        {
            var model = ReviewStoragesVM.MToVM(data);

            model.DateTime = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(data.DateTimeStorageID));
            return(model);
        }
Example #4
0
        public static MessagingConversationVM SetSubData(MessagingConversation data)
        {
            var model = MessagingConversationVM.MToVM(data);

            model.DateTime = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(data.DateTimeStorageID));
            return(model);
        }
        public static QuizTakersVM SetSubData(QuizTakers data, Guid aid)
        {
            var model = QuizTakersVM.MToVM(data);

            model.QuizInfo = QuizInfoService.SetSubData(QuizInfoService.GetByID(data.QuizInfoID, data.UserID, aid), aid);
            model.DateTime = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(data.DateTimeStorageID));
            return(model);
        }
        public static IS_ItemStockVM SetSubData(IS_ItemStock data, Guid aid)
        {
            var model = IS_ItemStockVM.MToVM(data);

            model.DateTimeStorage = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(data.DateTimeStorageID));
            model.StockStatus     = StatusTypesReferencesVM.MToVM(StatusTypesReferencesService.GetByID(data.StockStatusID));
            return(model);
        }
        public static UsersVM SetSubDataAdmin(Users item)
        {
            var model = UsersVM.MToVM(item);

            model.DateTimeData = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(item.DateTimeStorageID));
            model.ProfileImage = ImageLinkStorageVM.MToVM(ImageLinkStorageService.GetByIDAdmin(item.ProfileImageID));
            return(model);
        }
Example #8
0
        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 GroupingsDataVM SetSubData(GroupingsData data, Guid aid)
        {
            var model = GroupingsDataVM.MToVM(data);

            model.DateTimeData   = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(data.DateTimeStorageID));
            model.CategoryStatus = StatusTypesReferencesVM.MToVM(StatusTypesReferencesService.GetByOIDAID(data.CategoryID, aid).FirstOrDefault());
            return(model);
        }
Example #10
0
        public static ReportClaimsVM SetSubData(ReportClaims data, Guid aid)
        {
            var model = ReportClaimsVM.MToVM(data);

            model.DateTime   = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(data.DateTimeStorageID));
            model.ReportType = StatusTypesReferencesVM.MToVM(StatusTypesReferencesService.GetByID(data.ReportTypeID));
            return(model);
        }
Example #11
0
        public static QuizInfoVM SetSubData(QuizInfo data, Guid aid)
        {
            var model = QuizInfoVM.MToVM(data);

            model.QuizStatus      = StatusTypesReferencesVM.MToVM(StatusTypesReferencesService.GetByID(data.QuizStatus));
            model.Status          = StatusTypesReferencesVM.MToVM(StatusTypesReferencesService.GetByID(data.Status));
            model.DateTimeStorage = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(data.DateTimeStorageID));
            return(model);
        }
Example #12
0
        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);
        }
Example #13
0
        public static IS_ItemVM SetSubData(IS_Item data, Guid aid)
        {
            var model = IS_ItemVM.MToVM(data);

            model.DateTimeStorage = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(data.DateTimeStorageID));
            model.ItemCategory    = StatusTypesReferencesVM.MToVM(StatusTypesReferencesService.GetByID(data.ItemCategoryID));
            model.ItemColors      = IS_ItemColorService.SetSubDatas(IS_ItemColorService.GetByOwnerID(data.ID, aid));
            model.Images          = ImageLinkStorageVM.MsToVMs(ImageLinkStorageService.GetByOIDAPI(data.ID, aid));
            model.Condition       = StatusTypesReferencesVM.MToVM(StatusTypesReferencesService.GetByID(data.ConditionID));
            return(model);
        }