public IActionResult ChangeRadnikZelenilo([FromBody] ZasticenView zasticenView) { try { DataProvider.IzmeniZastitu(zasticenView); return(Ok()); } catch (Exception ex) { return(BadRequest(ex.ToString())); } }
public IActionResult AddRadnikZelenilo([FromBody] ZasticenView zasticenView, int idObjekta) { try { DataProvider.DodajZastituObjektu(zasticenView, idObjekta); return(Ok()); } catch (Exception ex) { return(BadRequest(ex.ToString())); } }