Exemplo n.º 1
0
        public ActionResult <DeleteBookResponseModel> DeleteFromBooked([FromBody] DeleteBookInputModel data)
        {
            DeleteBookResponseModel res = new DeleteBookResponseModel();

            try
            {
                BookBL bl    = new BookBL(DbContext);
                var    respo = bl.Delete(data);

                res.Message  = respo.Message;
                res.Response = true;

                return(res);
            }
            catch (Exception ex)
            {
                res.Message  = ex.Message;
                res.Response = false;

                return(res);
            }
        }
 public ActionResult ConfirmedDelete(int?id)
 {
     BookBl.Delete(id);
     return(RedirectToAction("Index", "BOOK"));
 }