public IResult DeleteByColorId(int colorId) { _colorDal.DeleteByFilter(p => p.CarColorId == colorId); return(new SuccessResult(Messages.Deleted)); //Console.WriteLine("carColor with Id: {0} deleted...", colorId); }