public async Task <ActionResult> AddNewFriend(int userid, int friendid) { try { var friend = await _frienddata.AddFriendAsync(userid, friendid); if (friend == null || friend.id == 0) { return(BadRequest(new CommonResponse { Status = false })); } return(Ok(new CommonResponse { Status = true })); } catch (Exception exp) { _Logger.LogError(exp.Message); return(BadRequest(new CommonResponse { Status = false })); } }