public ActionResult <ViewArrayCartResponse> ViewCart([FromBody] ViewCartInputModel data) { ViewArrayCartResponse res = new ViewArrayCartResponse(); try { BookBL bl = new BookBL(DbContext); res = bl.ViewCart(data); res.Message = "Success"; res.Response = true; return(Ok(res)); } catch (Exception ex) { res.Message = ex.Message; res.Response = false; return(BadRequest(res)); } }