Ejemplo n.º 1
0
        public ActionResult Delete(Guid id)
        {
            var result = _bo.Delete(id);

            if (result.Success)
            {
                return(Ok());
            }
            return(new ObjectResult(HttpStatusCode.InternalServerError));
        }
Ejemplo n.º 2
0
        public void TestDeleteNewsletter()
        {
            BoraNowSeeder.Seed();
            var nbo       = new NewsletterBusinessObject();
            var resList   = nbo.List();
            var resDelete = nbo.Delete(resList.Result.First().Id);

            resList = nbo.List();

            Assert.IsTrue(resDelete.Success && resList.Success && resList.Result.First().IsDeleted);
        }