public Vault EditVault(int id, [FromBody] Vault editVault) { if (ModelState.IsValid) { return(_db.EditVault(id, editVault)); } return(null); }
public Vault EditVault([FromBody] Vault editVault) { if (ModelState.IsValid) { Vault vault = _db.EditVault(editVault); if (vault != null) { return(vault); } } return(null); }
public Vault EditVault(int id, [FromBody] Vault newVault) { return(_db.EditVault(id, newVault)); }