Пример #1
0
        public ActionResult <NotificationBookResponseModel> SendNotifiExpired([FromBody] NotificationBookInputModel data)
        {
            NotificationBookResponseModel res = new NotificationBookResponseModel();

            try
            {
                BookBL bl   = new BookBL(DbContext);
                var    temp = bl.GetExpiredBook(data);
                res.data = temp;

                res.Message  = "Success";
                res.Response = true;

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

                return(res);
            }
        }