public async Task <IActionResult> GetHistoryLog([FromQuery] SearchParam fipso) { SecurityModel securityModel = (SecurityModel)(HttpContext.Items["SecurityModel"]); ResponseModel <List <InventoryHistory> > response = new ResponseModel <List <InventoryHistory> >(); try { response = await _inventoryServices.GetHistoryLog(fipso, 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)); } }