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 }); }
public void RemoveNoReturnAsync(ComponentMinimal dalComponentMinimal) { RepoDbSet.Remove(_mapper.MapToDomain(dalComponentMinimal)); }
public void UpdateNoReturnAsync(ComponentMinimal dalComponentFull) { RepoDbSet.Update(_mapper.MapToDomain(dalComponentFull)); }
public void AddNoReturn(ComponentMinimal dalComponentMinimal) { RepoDbSet.Add(_mapper.MapToDomain(dalComponentMinimal)); }
public void RemoveNoReturnAsync(ComponentMinimal bllComponent) { ServiceRepository.RemoveNoReturnAsync(_mapper.MapToDALMinimal(bllComponent)); }
public void AddNoReturn(ComponentMinimal bllComponent) { ServiceRepository.AddNoReturn(_mapper.MapToDALMinimal(bllComponent)); }