public async Task <IResult> DeleteAsync(Color color) { bool deleteResult = await _colorDal.DeleteAsync(color); if (!deleteResult) { return(new ErrorResult(Messages.ColorNotDeleted)); } return(new SuccessResult(Messages.ColorDeleted)); }
public async Task <IResult> Delete(Color color) { await _colorDal.DeleteAsync(color); return(new SuccessResult(Messages.ColorDeleted)); }
public async Task <IResult> DeleteAsync(Color entity) { await _colorDal.DeleteAsync(entity); return(new SuccessResult()); }