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