示例#1
0
        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));
        }
示例#2
0
        public async Task <IResult> Delete(Color color)
        {
            await _colorDal.DeleteAsync(color);

            return(new SuccessResult(Messages.ColorDeleted));
        }
示例#3
0
        public async Task <IResult> DeleteAsync(Color entity)
        {
            await _colorDal.DeleteAsync(entity);

            return(new SuccessResult());
        }