public IActionResult CheckOutCheckIn([FromBody] CheckOutCheckInRequest checkOutCheckInRequest)
        {
            DBResponse dbResponse = ToolInventoryRepo.CheckOutCheckIn(checkOutCheckInRequest);

            return(StatusCode(StatusCodes.Status200OK, new APIResponse
            {
                ResponseCode = 0,
                ResponseText = checkOutCheckInRequest.Action + " successful."
            }));
        }
Esempio n. 2
0
        public APIResponse CheckOutCheckIn(CheckOutCheckInRequest checkOutCheckInRequest)
        {
            DBResponse dbResponse = ToolInventoryRepo.CheckOutCheckIn(checkOutCheckInRequest);

            return(new APIResponse
            {
                ResponseCode = 0,
                ResponseText = checkOutCheckInRequest.Action + " successful."
            });
        }