public IActionResult Put(Aktuel aktuel) { try { _repo.Update(aktuel); return(Ok(aktuel)); } catch { } return(BadRequest()); }
public IActionResult Post([FromBody] Aktuel aktuel) { try { _repo.Add(aktuel); return(new StatusCodeResult(201)); } catch { } return(BadRequest()); }