//this method updates the user details public IActionResult Put(string emailid, [FromBody] User user) { //exceptional handling try { _context.Update(emailid, user); return(Ok("success")); } catch { return(Ok("internal server error")); } }