//this method updates the user details public IActionResult Details(int id) { try { return(Ok(_context.GetById(id))); } catch { return(BadRequest("Bad Request")); } }
//this method updates the user details public IActionResult Details(int id) { try { return(Ok(_context.GetById(id))); } catch { return(BadRequest("Bad Request")); } }