Esempio n. 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); 


        }
Esempio n. 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); 
            
            //
        }
Esempio n. 3
0
 public void CreateReview(Review Model)
 {
     var sql = new SqlConnection();
 }