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