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