예제 #1
0
        public IActionResult CheckIn()
        {
            var context = HttpContext.User.Identity;
            int id      = int.Parse(context.Name);

            try
            {
                _parkingService.CheckIn(id);
                return(Ok(new { message = "✓ Parking CheckIn" }));
            }
            catch (AppException ex)
            {
                return(BadRequest(new { message = ex.Message }));
            }
        }
예제 #2
0
 public IActionResult CheckIn(string LicensePlateNumber)
 {
     _parkingService.CheckIn(LicensePlateNumber);
     return(Ok());
 }