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)); }
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)); }
public void AddNoReturn(TestTypeMinimal dalTestTypeMinimal) { RepoDbSet.Add(_mapper.MapToDomain(dalTestTypeMinimal)); }
public void AddNoReturn(ComponentMinimal dalComponentMinimal) { RepoDbSet.Add(_mapper.MapToDomain(dalComponentMinimal)); }
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)); }
public void AddNoReturn(ManufacturerMinimal dalManufacturerMinimal) { RepoDbSet.Add(_mapper.MapToDomain(dalManufacturerMinimal)); }