Example #1
0
 public Component MapToDomain(ComponentMinimal dalComponent)
 {
     return(new Component
     {
         Id = dalComponent.Id,
         ComponentName = dalComponent.ComponentName,
         Model = dalComponent.Model,
         ReleaseYear = dalComponent.ReleaseYear,
         MSRP = dalComponent.Price,
         ManufacturerId = dalComponent.ManufacturerId,
         ComponentTypeId = dalComponent.ComponentTypeId
     });
 }
Example #2
0
 public void RemoveNoReturnAsync(ComponentMinimal dalComponentMinimal)
 {
     RepoDbSet.Remove(_mapper.MapToDomain(dalComponentMinimal));
 }
Example #3
0
 public void UpdateNoReturnAsync(ComponentMinimal dalComponentFull)
 {
     RepoDbSet.Update(_mapper.MapToDomain(dalComponentFull));
 }
Example #4
0
 public void AddNoReturn(ComponentMinimal dalComponentMinimal)
 {
     RepoDbSet.Add(_mapper.MapToDomain(dalComponentMinimal));
 }
Example #5
0
 public void RemoveNoReturnAsync(ComponentMinimal bllComponent)
 {
     ServiceRepository.RemoveNoReturnAsync(_mapper.MapToDALMinimal(bllComponent));
 }
Example #6
0
 public void AddNoReturn(ComponentMinimal bllComponent)
 {
     ServiceRepository.AddNoReturn(_mapper.MapToDALMinimal(bllComponent));
 }