public async Task <IActionResult> addVehicle([FromBody] Vehicle vehicle)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     _repo.Add <Vehicle>(vehicle);
     return(Ok(await _repo.SaveAll()));
 }
 public async Task <IActionResult> addPlaza([FromBody] Plaza plaza)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     _repo.Add <Plaza>(plaza);
     if (await _repo.SaveAll())
     {
         return(Ok());
     }
     return(BadRequest("Failed to Add plaza"));
 }
 public async Task addLog(ChargeLog chargeLog)
 {
     _repo.Add(chargeLog);
     await _repo.SaveAll();
 }