コード例 #1
0
 public IResult Delete(ECOType ecoType)
 {
     _ecoTypeDao.Delete(ecoType);
     return(new SuccessResult(true, ResultMessages.ProductDeleted));
 }
コード例 #2
0
        public async Task <IResult> DeleteAsync(ECOType ecoType)
        {
            await _ecoTypeDao.DeleteAsync(ecoType);

            return(new SuccessResult(true, ResultMessages.ProductDeleted));
        }
コード例 #3
0
 public IResult Add(ECOType ecoType)
 {
     _ecoTypeDao.Add(ecoType);
     return(new SuccessResult(true, ResultMessages.ProductAdded));
 }