public DAL.App.DTO.Notification AddNewNotification(DAL.App.DTO.Notification notification)
        {
            var domainNotification = NotificationMapper.MapToDomain(notification);
            var addedNotification  = RepoDbSet.Add(domainNotification).Entity;

            return(NotificationMapper.Map(addedNotification));
        }
Beispiel #2
0
        public DTO.UserInTraining AddNewUserInTraining(DTO.UserInTraining userInTraining)
        {
            var domainUserInTraining = new UserInTraining()
            {
                AppUserId         = userInTraining.AppUserId,
                AttendingTraining = userInTraining.AttendingTraining,
                TrainingId        = userInTraining.TrainingId
            };

            var addedUserInTraining = RepoDbSet.Add(domainUserInTraining);

            return(UserInTrainingMapper.Map(addedUserInTraining.Entity));
        }
        public DTO.Training AddNew(DTO.Training training)
        {
            var domainTraining = new Training()
            {
                TrainingPlaceId = training.TrainingPlaceId,
                TrainingStatus  = training.TrainingStatus,
                Description     = training.Description,
                Start           = training.Start,
                StartTime       = training.StartTime,
                CreatorId       = training.CreatorId,
                Duration        = training.Duration
            };

            var addedTraining = RepoDbSet.Add(domainTraining).Entity;

            return(TrainingMapper.Map(addedTraining));
        }
Beispiel #4
0
 public void AddNoReturn(TestTypeMinimal dalTestTypeMinimal)
 {
     RepoDbSet.Add(_mapper.MapToDomain(dalTestTypeMinimal));
 }
Beispiel #5
0
 public void AddNoReturn(ComponentMinimal dalComponentMinimal)
 {
     RepoDbSet.Add(_mapper.MapToDomain(dalComponentMinimal));
 }
Beispiel #6
0
 public void AddNoReturn(UnitOfMeasureMinimal dalUnitOfMeasureMinimal)
 {
     RepoDbSet.Add(_mapper.MapToDomain(dalUnitOfMeasureMinimal));
 }
 public void AddNoReturn(ComponentTypeSpecificationMinimal dalComponentTypeSpecificationMinimal)
 {
     RepoDbSet.Add(_mapper.MapToDomain(dalComponentTypeSpecificationMinimal));
 }
 public void AddNoReturn(SpecificationMinimal dalSpecificationMinimal)
 {
     RepoDbSet.Add(_mapper.MapToDomain(dalSpecificationMinimal));
 }
Beispiel #9
0
 public void AddNoReturn(ManufacturerMinimal dalManufacturerMinimal)
 {
     RepoDbSet.Add(_mapper.MapToDomain(dalManufacturerMinimal));
 }