public void BoletaBL_Delete() { var ListBoleta = BoletaBL.GetList(false); var _Boleta = ListBoleta.First(); bool Result = BoletaBL.Delete(_Boleta.Id); Assert.IsTrue(Result); }
public ActionResult Delete(int id) { bool IsDelete = BoletaBL.Delete(id); JsonResponse JsonResponse = new JsonResponse() { IsSuccess = IsDelete }; return(Json(JsonResponse)); }