public ActionResult <VaultKeep> Edit(int id, [FromBody] VaultKeep editedVaultKeep) { VaultKeep updatedVaultKeep = _vkr.EditVaultKeep(id, editedVaultKeep); if (updatedVaultKeep == null) { return(BadRequest()); } return(Ok(updatedVaultKeep)); }
public ActionResult <VaultKeep> Put([FromBody] VaultKeep value) { value.UserId = HttpContext.User.Identity.Name; int result = _vaultkeepsRepo.EditVaultKeep(value); if (result == 1) { return(Ok(result)); } return(NotFound()); }