public async Task <int> InsertAsync(ProductCarCate entity)
 {
     if (entity == null)
     {
         throw new ArgumentNullException("ProductCarCate");
     }
     return(await _ProductCarCateRepository.InsertAsync(entity));
 }
Exemple #2
0
 public static ProductCarCate ToEntity(this ProductCarCateDTO dto, ProductCarCate entity)
 {
     return(Mapper.Map(dto, entity));
 }
Exemple #3
0
 public static ProductCarCateDTO ToModel(this ProductCarCate entity)
 {
     return(Mapper.Map <ProductCarCate, ProductCarCateDTO>(entity));
 }