public bool Put(string id, [FromBody] ActiveCodeRowData model) { bool result = true; try { result = _homemodel.ActiveGarden(id, model.TOKEN_KEY); } catch (Exception ex) { result = false; } return(result); }
public bool Post([FromBody] ActiveCodeRowData model) { bool result = true; try { result = _homemodel.ActiveGarden(model.GARDEN_ID, model.TOKEN_KEY); } catch (Exception ex) { result = false; } return(result); }