public IActionResult Post([FromBody] Battery battery) { var id = batteryService.Post(battery); _batteries.Create(battery); _batteries.Save(); return(Ok(id)); }
public IActionResult Post([FromBody] Battery battery) { var id = batteryService.Post(battery); _batteries.Create(battery); _batteries.Save(); return(Ok(id)); }