public async Task <IActionResult> Put(string id, BookDetails entity)
        {
            SecurityModel securityModel          = (SecurityModel)(HttpContext.Items["SecurityModel"]);
            ResponseModel <BookDetails> response = new ResponseModel <BookDetails>();

            try
            {
                entity.Id = id;
                response  = await _inventoryServices.UpdateAsync(entity, securityModel);

                response.Token = securityModel.Token;
                if (!response.Status)
                {
                    return(BadRequest(response));
                }
                return(Ok(response));
            }
            catch (Exception ex)
            {
                response.Status = false;
                response.ReturnMessage.Add(ex.Message);
                return(BadRequest(response));
            }
        }