public async Task <ActionResult> Users(int id) { try { var user = await _frienddata.GetFriendsAsync(id); //var user = await _userdata.getUserModelAsync(id); return(Ok(user)); } catch (Exception exp) { _Logger.LogError(exp.Message); return(BadRequest(new CommonResponse { Status = false })); } }