Ejemplo n.º 1
0
        public void TutorialsDelete()
        {
            TutorialsService tutorialsCRUD = new TutorialsService();

            tutorialsCRUD.Delete("ad6b3dbb-f9d2-4d38-b601-42cb36a1120a");
            Assert.IsNull(tutorialsCRUD.GetTutorialsById("ad6b3dbb-f9d2-4d38-b601-42cb36a1120a"));
        }
Ejemplo n.º 2
0
 public ActionResult Delete(string id)
 {
     if (id == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     tutorialsCRUD.Delete(id);
     return(RedirectToAction("Index"));
 }