public IResult Delete(ECOTag ecoTag) { _ecoTagDao.Delete(ecoTag); return(new SuccessResult(true, ResultMessages.ProductDeleted)); }
public async Task <IResult> DeleteAsync(ECOTag ecoTag) { await _ecoTagDao.DeleteAsync(ecoTag); return(new SuccessResult(true, ResultMessages.ProductDeleted)); }
public IResult Add(ECOTag ecoTag) { _ecoTagDao.Add(ecoTag); return(new SuccessResult(true, ResultMessages.ProductAdded)); }