Esempio n. 1
0
        public IActionResult CheckUserInRun(string id)
        {
            string response = string.Empty;
            bool   resp     = _bikeService.CheckUserInRun(id, ref response);

            if (response == "Sucess")
            {
                return(Ok(new
                {
                    status = response,
                    message = resp.ToString()
                }));
            }
            return(BadRequest(new
            {
                status = "Failed",
                message = response
            }));
        }