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 })); } }
public IActionResult CheckIn(string LicensePlateNumber) { _parkingService.CheckIn(LicensePlateNumber); return(Ok()); }