예제 #1
0
        static void Main(string[] args)
        {
            var rev = new Review() { Comment = "El senior de los anillos es chevere" };
            
            var service = new ReviewService(new ReviewRepositorio());

            service.CreateReview(rev); 


        }
예제 #2
0
        public  void CreateReview(Review Model)
        {
            var bw = this.Repositorio.GetBadWords(); 

            if ( bw.Contains( Model.Comment) )
            {
                throw new ApplicationException("frase no permitida"); 
            }
            this.Repositorio.CreateReview(Model); 
            
            //
        }
예제 #3
0
 public void CreateReview(Review Model)
 {
     var sql = new SqlConnection();
 }