public ActionResult ViewReservedItemsForLibrarian()
        {
            var config = new Config().Get();

            var countDays = config.Reserervation.DeleteAfterDays;

            this.reservedItemManager.CheckIfTimeFinished(countDays);

            return this.View();
        }
        public HttpResponseMessage ReserveItem(int id)
        {
            var reader = this.readerManager.GetReaderByUserId(WebSecurity.CurrentUserId);

            var config = new Config().Get();

            var limitReservedItems = config.Reserervation.MaxReservedItems;

            var msg = reader != null ? this.reservedItemManager.ReserveItem(reader.ReaderId, id, limitReservedItems)
                             : "You must be Reader in order to reserve items";

            if (msg.Contains("Successfully"))
            {
                return Request.CreateResponse(HttpStatusCode.OK, msg);
            }

            return Request.CreateResponse(HttpStatusCode.BadRequest);
        }