public static DTO.Notification Map(DAL.App.DTO.Notification notification)
        {
            var dto = new DTO.Notification
            {
                Id               = notification.Id,
                Title            = notification.Title,
                Content          = notification.Content,
                AppUserId        = notification.AppUserId,
                NotificationType = notification.NotificationType,
                TrainingId       = notification.TrainingId
            };

            return(dto);
        }
        public static DTO.Notification Map(Domain.Notification notification)
        {
            Notification dto = new DTO.Notification
            {
                Id               = notification.Id,
                Title            = notification.Title,
                Content          = notification.Content,
                AppUserId        = notification.AppUserId,
                NotificationType = notification.NotificationType,
                TrainingId       = notification.TrainingId,
                Recived          = notification.Recived
            };

            return(dto);
        }
        public static Domain.Notification MapToDomain(DTO.Notification notification)
        {
            Domain.Notification domain = new Domain.Notification
            {
                Id               = notification.Id,
                Title            = notification.Title,
                Content          = notification.Content,
                AppUserId        = notification.AppUserId,
                NotificationType = notification.NotificationType,
                TrainingId       = notification.TrainingId,
                Recived          = notification.Recived
            };

            return(domain);
        }
예제 #4
0
 public abstract object GetSearchFilter(int userId, out DTO.Notification notification);
예제 #5
0
 public abstract object GetInitData(int userId, out DTO.Notification notification);
예제 #6
0
 public abstract bool Reset(int userId, int id, ref object dtoItem, out DTO.Notification notification);
예제 #7
0
 public abstract bool UpdateData(int userId, int id, ref object dtoItem, out DTO.Notification notification);
예제 #8
0
 public abstract bool DeleteData(int userId, int id, out DTO.Notification notification);
예제 #9
0
 public abstract TEditFormData GetData(int userId, int id, Hashtable param, out DTO.Notification notification);
예제 #10
0
 public abstract TSeachFormData GetDataWithFilter(int userId, Hashtable filters, int pageSize, int pageIndex, string orderBy, string orderDirection, out int totalRows, out DTO.Notification notification);
예제 #11
0
 public abstract TEditFormData GetData(int id, out DTO.Notification notification);