示例#1
0
 public Contracts.Feature UpdateFeature(Contracts.Feature feature)
 {
     Model.Feature efFeature = _mapper.Map <Contracts.Feature, Model.Feature>(feature);
     _featureRepository.UpdateFeature(efFeature);
     return(feature);
 }
示例#2
0
 public Contracts.Feature CreateFeature(Contracts.Feature feature)
 {
     Model.Feature efFeature = _mapper.Map <Contracts.Feature, Model.Feature>(feature);
     efFeature = _featureRepository.CreateFeature(efFeature);
     return(_mapper.Map <Model.Feature, Contracts.Feature>(efFeature));
 }