public void Put(string id, [FromBody] UpdateNameModel model) { try { board_repo_.UpdateName(id, model); } catch (Exception ex) { throw ex; } }
public ActionResult Put(string id, [FromBody] UpdateNameModel model) { try { list_repo_.UpdateName(id, model); return(this.Ok()); } catch (Exception ex) { throw ex; } }
public bool UpdateName(string id, UpdateNameModel model) { db_.UpdateListField <string>(id, "Name", model.Name); return(true); }
public void UpdateName(string id, UpdateNameModel model) { db_.UpdateBoardField <string>(id, "BoardName", model.Name); }