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

            if (result.Success)
            {
                return(Ok());
            }
            return(new ObjectResult(HttpStatusCode.InternalServerError));
        }
Esempio n. 2
0
        public void TestDeleteInterestPointNewsletter()
        {
            BoraNowSeeder.Seed();
            var ipnbo     = new InterestPointNewsletterBusinessObject();
            var resList   = ipnbo.List();
            var resDelete = ipnbo.Delete(resList.Result.First().Id);

            resList = ipnbo.List();

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