Exemplo n.º 1
0
        public void BoletaBL_Delete()
        {
            var ListBoleta = BoletaBL.GetList(false);

            var _Boleta = ListBoleta.First();

            bool Result = BoletaBL.Delete(_Boleta.Id);

            Assert.IsTrue(Result);
        }
Exemplo n.º 2
0
        public ActionResult Delete(int id)
        {
            bool IsDelete = BoletaBL.Delete(id);

            JsonResponse JsonResponse = new JsonResponse()
            {
                IsSuccess = IsDelete
            };

            return(Json(JsonResponse));
        }